mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update ConfigCacheService, fix db issue
This commit is contained in:
parent
b9054f6fd2
commit
d2cb7d4770
2 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,10 @@ class ConfigCacheService
|
||||||
'uikit.show_custom.js'
|
'uikit.show_custom.js'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if(!config('instance.enable_cc')) {
|
||||||
|
return config($key);
|
||||||
|
}
|
||||||
|
|
||||||
if(!in_array($key, $allowed)) {
|
if(!in_array($key, $allowed)) {
|
||||||
return config($key);
|
return config($key);
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,4 +72,6 @@ return [
|
||||||
'org' => env('COVID_LABEL_ORG', 'visit the WHO website')
|
'org' => env('COVID_LABEL_ORG', 'visit the WHO website')
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'enable_cc' => env('ENABLE_CONFIG_CACHE', false)
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue