永久缓存系统配置

This commit is contained in:
WispX
2021-12-17 23:39:22 +08:00
parent cdd40511ea
commit d229ef18a8
+1 -1
View File
@@ -20,7 +20,7 @@ class Utils
public static function config(string $name = '', mixed $default = null): mixed
{
/** @var Collection $configs */
$configs = Cache::remember('configs', 86400, function () {
$configs = Cache::rememberForever('configs', function () {
return Config::query()->pluck('value', 'name')->transform(function ($value, $key) {
switch ($key) {
case ConfigKey::IsAllowGuestUpload: