Extended settings cache expiration length

Extended settings cache expiration length
This commit is contained in:
cp6 2022-05-29 16:50:15 +10:00
parent 73f2d8f07f
commit f72eec01f7

View File

@ -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();