Extended settings cache expiration length
Extended settings cache expiration length
This commit is contained in:
parent
73f2d8f07f
commit
f72eec01f7
|
@ -18,7 +18,7 @@ class Settings extends Model
|
||||||
|
|
||||||
public static function getSettings()
|
public static function getSettings()
|
||||||
{
|
{
|
||||||
return Cache::remember('settings', now()->addMinute(1), function () {
|
return Cache::remember('settings', now()->addWeek(1), function () {
|
||||||
return DB::table('settings')
|
return DB::table('settings')
|
||||||
->where('id', '=', 1)
|
->where('id', '=', 1)
|
||||||
->get();
|
->get();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user