From f72eec01f7ece4531629302e210c3ee06dd10a24 Mon Sep 17 00:00:00 2001 From: cp6 Date: Sun, 29 May 2022 16:50:15 +1000 Subject: [PATCH] Extended settings cache expiration length Extended settings cache expiration length --- app/Models/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Settings.php b/app/Models/Settings.php index a5625c7..300f66b 100644 --- a/app/Models/Settings.php +++ b/app/Models/Settings.php @@ -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();