Implement settings cache

This commit is contained in:
Ferks-FK 2023-02-05 21:42:58 +00:00 committed by IceToast
parent 411441e1a8
commit 302ef9227a
2 changed files with 7 additions and 2 deletions

View file

@ -62,3 +62,6 @@ PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
# Settings Cache
SETTINGS_CACHE_ENABLED=true

View file

@ -10,6 +10,7 @@ use App\Settings\ReferralSettings;
use App\Settings\ServerSettings; use App\Settings\ServerSettings;
use App\Settings\UserSettings; use App\Settings\UserSettings;
use App\Settings\WebsiteSettings; use App\Settings\WebsiteSettings;
use App\Settings\TicketSettings;
return [ return [
@ -27,7 +28,8 @@ return [
ReferralSettings::class, ReferralSettings::class,
ServerSettings::class, ServerSettings::class,
UserSettings::class, UserSettings::class,
WebsiteSettings::class WebsiteSettings::class,
TicketSettings::class
], ],
/* /*
@ -75,7 +77,7 @@ return [
'cache' => [ 'cache' => [
'enabled' => env('SETTINGS_CACHE_ENABLED', false), 'enabled' => env('SETTINGS_CACHE_ENABLED', false),
'store' => null, 'store' => null,
'prefix' => null, 'prefix' => 'setting_',
'ttl' => null, 'ttl' => null,
], ],