template->isEvaluated() && $compiler->template->caching && ($tag_nocache || $compiler->nocache || $compiler->tag_nocache)) { $compiler->tag_nocache = false; $_output = str_replace("'", "\'", $content); $_output = ''; } else { $_output = $content; } } else { $_output = $content; } // if compiled code shall be grabbed if ($compiler->template->extract_code == false) { // return output return $_output; } else { // store code in extract buffer $compiler->template->extracted_compiled_code .= $_output; return ''; } } /** * Initialize cacher * * Is a noop in current implementation * * @param object $compiler intance of compiler class */ public function initCacher ($compiler) { return; } /** * Close cacher * * Hook to perform any post processing on the final compiled template * Is a noop in current implementation * * @param object $compiler intance of compiler class * @param string $template_code complete compiled template * @return string compiled template output */ public function closeCacher ($compiler, $template_code) { return $template_code; } /** * Retrieve cached output * * Calls the cache resource according to the caching type * * @param object $_template intance of template object * @return string content from cache */ public function getCachedContents ($_template) { return $this->smarty->cache_resource_objects[$_template->caching_type]->getCachedContents($_template); } /** * Store cached output * * Calls the cache resource according to the caching type * * @param object $_template intance of template object * @return boolean status */ public function writeCachedContent ($_template) { return $this->smarty->cache_resource_objects[$_template->caching_type]->writeCachedContent($_template); } } ?>