mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-19 17:48:36 +00:00
Extended settings cache expiration length
Extended settings cache expiration length
This commit is contained in:
parent
73f2d8f07f
commit
f72eec01f7
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class Settings extends Model
|
|||
|
||||
public static function getSettings()
|
||||
{
|
||||
return Cache::remember('settings', now()->addMinute(1), function () {
|
||||
return Cache::remember('settings', now()->addWeek(1), function () {
|
||||
return DB::table('settings')
|
||||
->where('id', '=', 1)
|
||||
->get();
|
||||
|
|
Loading…
Add table
Reference in a new issue