debug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user