private function _readHtmlCache($module = '', $action = '') { if ($this->appConfig['HTML_CACHE_ON'] == false || empty($this->appConfig['HTML_CACHE_RULE'])) { $this->appConfig['HTML_CACHE_ON'] = false; return false; } if (isset($this->appConfig['HTML_CACHE_RULE'][$module][$action])) { $expire = $this->appConfig['HTML_CACHE_RULE'][$module][$action]; } else { if (isset($this->appConfig['HTML_CACHE_RULE'][$module]['*'])) { $expire = $this->appConfig['HTML_CACHE_RULE'][$module]['*']; } else { $this->appConfig['HTML_CACHE_ON'] = false; return false; } } require_once CP_CORE_PATH . '/cpHtmlCache.class.php'; return cpHtmlCache::read($this->appConfig['HTML_CACHE_PATH'], $expire); }
private function _readHtmlCache($module = '', $action = '') { if ($this->appConfig['HTML_CACHE_ON']) { require_once CP_CORE_PATH . '/cpHtmlCache.class.php'; return cpHtmlCache::read($module, $action); } return false; }