Update site config, increase ttl and enable SPA by default

pull/3091/head
Daniel Supernault 2021-12-26 03:46:15 -07:00
rodzic d9551fc3b7
commit 469d49d832
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
2 zmienionych plików z 4 dodań i 10 usunięć

Wyświetl plik

@ -7,10 +7,10 @@ use Illuminate\Support\Str;
class Config {
const CACHE_KEY = 'api:site:configuration:_v0.4';
const CACHE_KEY = 'api:site:configuration:_v0.5';
public static function get() {
return Cache::remember(self::CACHE_KEY, now()->addMinutes(5), function() {
return Cache::remember(self::CACHE_KEY, 86400, function() {
return [
'open_registration' => (bool) config_cache('pixelfed.open_registration'),
'uploader' => [
@ -33,13 +33,7 @@ class Config {
'remote_follow' => config('federation.activitypub.remoteFollow')
],
'ab' => [
'lc' => config('exp.lc'),
'rec' => config('exp.rec'),
'loops' => config('exp.loops'),
'top' => config('exp.top'),
'polls' => config('exp.polls')
],
'ab' => config('exp'),
'site' => [
'name' => config_cache('app.name'),

Wyświetl plik

@ -9,5 +9,5 @@ return [
'polls' => env('EXP_POLLS', false),
'cached_public_timeline' => env('EXP_CPT', false),
'gps' => env('EXP_GPS', false),
'spa' => env('EXP_SPA', false),
'spa' => env('EXP_SPA', true),
];