Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Fixed components wrong cache expire
givanz4c8302a88e42
diff --git a/system/component/component.php b/system/component/component.phpindex ad93901..85acb7c 100644--- a/system/component/component.php+++ b/system/component/component.php@@ -145,9 +145,8 @@ class Component {foreach ($instances as $instance => $options) {$obj = new $class($options);- $cacheKey = $obj->cacheKey();- if ($cacheKey && $this->cache) {+ if ($obj->cacheExpire && $this->cache && ($cacheKey = $obj->cacheKey())) {$cacheExpireKey = $cacheKey . '_expire';$cache[] = $cacheKey;$cache[] = $cacheExpireKey;@@ -273,7 +272,7 @@ class Component {}if (! empty($saveCache)) {- $cacheDriver->setMulti($namespace, $saveCache, $_SERVER['REQUEST_TIME'] + COMPONENT_CACHE_EXPIRE, SITE_ID);+ $cacheDriver->setMulti($namespace, $saveCache, /*$_SERVER['REQUEST_TIME'] + */COMPONENT_CACHE_EXPIRE * 3600, SITE_ID);}}