This commit is contained in:
make
2026-01-09 21:09:57 +08:00
parent 20008dbf97
commit 0d12792f65

View File

@@ -42,7 +42,7 @@ class SiteStyle
{ {
static $arrReqCache = []; static $arrReqCache = [];
if (empty($strHost)) { if (empty($strHost) || $strHost == null) {
$strHost = self::resolveHost(); $strHost = self::resolveHost();
} }
@@ -173,7 +173,7 @@ class SiteStyle
&& (int)($arrCfg['meta']['version'] ?? 0) === self::CFG_VERSION && (int)($arrCfg['meta']['version'] ?? 0) === self::CFG_VERSION
) { ) {
if (self::useCache()) { if (self::useCache()) {
Cache::set($strCacheKey, $arrCfg, 86400 * 7); Cache::set($strCacheKey, $arrCfg, 86400 * 3);
} }
return $arrCfg; return $arrCfg;
} }
@@ -185,7 +185,7 @@ class SiteStyle
self::writeLocalJson($strHost, $arrCfg); self::writeLocalJson($strHost, $arrCfg);
if (self::useCache()) { if (self::useCache()) {
Cache::set($strCacheKey, $arrCfg, 86400 * 30); Cache::set($strCacheKey, $arrCfg, 86400 * 3);
} }
return $arrCfg; return $arrCfg;