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