mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update site config, increase ttl and enable SPA by default
This commit is contained in:
parent
d9551fc3b7
commit
469d49d832
2 changed files with 4 additions and 10 deletions
|
@ -7,10 +7,10 @@ use Illuminate\Support\Str;
|
||||||
|
|
||||||
class Config {
|
class Config {
|
||||||
|
|
||||||
const CACHE_KEY = 'api:site:configuration:_v0.4';
|
const CACHE_KEY = 'api:site:configuration:_v0.5';
|
||||||
|
|
||||||
public static function get() {
|
public static function get() {
|
||||||
return Cache::remember(self::CACHE_KEY, now()->addMinutes(5), function() {
|
return Cache::remember(self::CACHE_KEY, 86400, function() {
|
||||||
return [
|
return [
|
||||||
'open_registration' => (bool) config_cache('pixelfed.open_registration'),
|
'open_registration' => (bool) config_cache('pixelfed.open_registration'),
|
||||||
'uploader' => [
|
'uploader' => [
|
||||||
|
@ -33,13 +33,7 @@ class Config {
|
||||||
'remote_follow' => config('federation.activitypub.remoteFollow')
|
'remote_follow' => config('federation.activitypub.remoteFollow')
|
||||||
],
|
],
|
||||||
|
|
||||||
'ab' => [
|
'ab' => config('exp'),
|
||||||
'lc' => config('exp.lc'),
|
|
||||||
'rec' => config('exp.rec'),
|
|
||||||
'loops' => config('exp.loops'),
|
|
||||||
'top' => config('exp.top'),
|
|
||||||
'polls' => config('exp.polls')
|
|
||||||
],
|
|
||||||
|
|
||||||
'site' => [
|
'site' => [
|
||||||
'name' => config_cache('app.name'),
|
'name' => config_cache('app.name'),
|
||||||
|
|
|
@ -9,5 +9,5 @@ return [
|
||||||
'polls' => env('EXP_POLLS', false),
|
'polls' => env('EXP_POLLS', false),
|
||||||
'cached_public_timeline' => env('EXP_CPT', false),
|
'cached_public_timeline' => env('EXP_CPT', false),
|
||||||
'gps' => env('EXP_GPS', false),
|
'gps' => env('EXP_GPS', false),
|
||||||
'spa' => env('EXP_SPA', false),
|
'spa' => env('EXP_SPA', true),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue