Update Cache, prepare for laravel 5.8
This commit is contained in:
parent
6bbef6ac4e
commit
4739c25fe0
15 changed files with 31 additions and 30 deletions
|
@ -44,7 +44,7 @@ class AdminController extends Controller
|
|||
|
||||
public function home()
|
||||
{
|
||||
$data = Cache::remember('admin:dashboard:home:data', 15, function() {
|
||||
$data = Cache::remember('admin:dashboard:home:data', now()->addMinutes(15), function() {
|
||||
$day = config('database.default') == 'pgsql' ? 'DATE_PART(\'day\',' : 'day(';
|
||||
return [
|
||||
'failedjobs' => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue