/** * Write this cache object to handler * * @param Smurty_Internal_Template $_template template object * @param string $content content to cache * * @return boolean success */ public function write(Smurty_Internal_Template $_template, $content) { if (!$_template->source->recompiled) { if ($this->handler->writeCachedContent($_template, $content)) { $this->content = null; $this->timestamp = time(); $this->exists = true; $this->valid = true; if ($_template->smurty->cache_locking) { $this->handler->releaseLock($_template->smurty, $this); } return true; } } return false; }