diff --git a/code/app/common/helper/SiteStyle.php b/code/app/common/helper/SiteStyle.php index ae5d89d..e14e4b7 100644 --- a/code/app/common/helper/SiteStyle.php +++ b/code/app/common/helper/SiteStyle.php @@ -42,7 +42,7 @@ class SiteStyle { static $arrReqCache = []; - if (empty($strHost)) { + if (empty($strHost) || $strHost == null) { $strHost = self::resolveHost(); } @@ -173,7 +173,7 @@ class SiteStyle && (int)($arrCfg['meta']['version'] ?? 0) === self::CFG_VERSION ) { if (self::useCache()) { - Cache::set($strCacheKey, $arrCfg, 86400 * 7); + Cache::set($strCacheKey, $arrCfg, 86400 * 3); } return $arrCfg; } @@ -185,7 +185,7 @@ class SiteStyle self::writeLocalJson($strHost, $arrCfg); if (self::useCache()) { - Cache::set($strCacheKey, $arrCfg, 86400 * 30); + Cache::set($strCacheKey, $arrCfg, 86400 * 3); } return $arrCfg;