T !NP`abcfijopPI(&@﯍4pUpUpU U|1lUP18,ύ40pUXQ(&@﯍4UUYU8UUY08UsUU|UYpUpUHU U|pYȜ4`1%XQPpUUU0U؆U`UHUQXfW؋ō41XoXYUȄUUpU1 _4SYUPU0UU1hU(1%H4.orgYHU؅U؆UU1U 1%XYhUU`U0U1YxU0UHU؆U1HUX1(&@﯍4UUUU|1rU10-0-0UXQ(&@﯍4UpUY`UU`UY0UzUhU UYUUUU|Y1%XQPUxUXUUU0UUxQ;hT41XXYUHUXUU1UAX1(&@﯍4Zakl4YkV3eVdubGFWMVl5V2xka2FHTXlUbk5rVjBwM1dWaE9lYhpUЋUUxU1U  1%XYUUUXU1hU 1%XYUXU0UU1Y@HUUUU1UX1(&@﯍4|Y (UU0UYUUUUYPUUUU|rn bool True if cache stored */ public function storeFile($data, $key) { // No file was store when devmode = true if ($this->_devmode) return false; $cache = $this->cache; return $cache->store($data, $key, T3Cache::T3_CACHE_ASSETS); } /** * Get data file by key & T3_CACHE_ASSESTS * * @param string $key Cached key * * @return mixed False if failure or cached data file */ public function getFile($key) { // No file was store when devmode = true if ($this->_devmode) return false; $cache = $this->cache; $data = $cache->get($key, T3Cache::T3_CACHE_ASSETS); return $data; } /** * Set caching * * @param bool $enabled Enabled caching * * @return void */ public function setCaching($enabled) { $this->cache->setCaching($enabled); } /** * Clean cache * * @param int $t3assets Level of cleaning * * @return void */ public static function clean($t3assets = 0) { $cache = T3Cache::getT3Cache(); $cache->_clean($t3assets); } /** * Clean T3 cache * If $t3assets > 0, deleted all cached content in defaultgroup * If $t3assets > 1, deleted all cached content in assets group * If $t3assets > 2, deleted all cached content in css/js optimize folder * * @param int $t3assets Level cache * * @return void */ private function _clean($t3assets = 0) { $cache = $this->cache; // Clear cache in default group folder if ($t3assets > 0) { $cache->clean(); } // Clear cache in assets folder if ($t3assets > 1) { $cache->clean(self::T3_CACHE_ASSETS); } if ($t3assets > 2) { //clean t3-assets folder, the cache for js/css $templates = T3Common::get_active_templates(); //T3Common::log(var_export($templates, true)); foreach ($templates as $template) { $file = T3Path::path("templates/$template").DS.'params.ini'; if (is_file($file)) { $content = file_get_contents($file); // $params = new JParameter($content); // Strict standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile() $params = $content; if (!($content instanceof JRegistry)) { $params = new JRegistry($content); } $cache_path = $params->get('optimize_folder', 't3-assets'); $path = T3Path::path($cache_path); //T3Common::log($path); if (is_dir($path)) { @JFolder::delete($path); } } } } } /** * Get page key from URI, browser (version), params (cookie params) * * @return mixed NULL if devmode/noncache or string key code */ public static function getPageKey () { static $key = null; if ($key) return $key; // No cache in devmode $t3cache = T3Cache::getT3Cache(); if ($t3cache->_devmode) return null; // No cache when disable T3 cache $config = T3Common::get_template_based_params(); if ($config->get('cache', 0) == 0) return null; // TODO: need to move in cache page code at the end of onAfterRender $mainframe = JFactory::getApplication(); $messages = $mainframe->getMessageQueue(); // Ignore cache when there're some message if (is_array($messages) && count($messages)) { return null; } // If user log-in, ignore cache $user = JFactory::getUser(); if (!$user->get('guest') || $_SERVER['REQUEST_METHOD'] != 'GET') { return null; } // If ie6, ignore cache $isIE6 = T3Template::isIE6(); if ($isIE6) { return null; } // Don't cache when offline $cfg = JFactory::getConfig(); if ($cfg->get('offline')) { return null; } $uri = JRequest::getURI(); //$browser = T3Common::getBrowserSortName() . "-" . T3Common::getBrowserMajorVersion(); $mobile = T3Common::mobile_device_detect(); $params = T3Parameter::getInstance(); $cparams = ''; foreach ($params->_params_cookie as $k => $v) { $cparams .= $k . "=" . $v . '&'; } //$key = "page - URI: $uri; Browser: $browser; Params: $cparams"; $key = "page - URI: $uri; Mobile: $mobile; Params: $cparams"; //T3Common::log($key . ' ' . T3Common::getBrowserSortName() . "-" . T3Common::getBrowserMajorVersion()); return $key; } /** * Get preload key from template information * * @param string $template String template information * * @return mixed NULL if devmode or keycode string */ public static function getPreloadKey ($template) { $t3cache = T3Cache::getT3Cache(); if ($t3cache->_devmode) return null; //no cache in devmode*/ $string = 'template-' . $template; return $string; } /** * Get profile key from active profile & default profile * * @return mixed NULL if devmode or keycode string */ public static function getProfileKey () { $t3cache = T3Cache::getT3Cache(); if ($t3cache->_devmode) return null; //no cache in devmode $profile = T3Common::get_active_profile().'-'.T3Common::get_default_profile(); $string = 'profile-'.$profile; return $string; } /** * Get theme key from active layout & active themes * * @return mixed NULL if devmode or keycode string */ public static function getThemeKey () { $t3cache = T3Cache::getT3Cache(); if ($t3cache->_devmode) return null; //no cache in devmode $themes = T3Common::get_active_themes(); $layout = T3Common::get_active_layout(); $string = 'theme-infos-'.$layout; if (is_array($themes)) $string .= serialize($themes); return $string; } } 0 - Class 'T3Cache' not found
0 - Class 'T3Cache' not found

You may not be able to visit this page because of:

  1. an out-of-date bookmark/favourite
  2. a search engine that has an out-of-date listing for this site
  3. a mistyped address
  4. you have no access to this page
  5. The requested resource was not found.
  6. An error has occurred while processing your request.

Please try one of the following pages:

If difficulties persist, please contact the System Administrator of this site and report the error below.

Class 'T3Cache' not found