public function enableCache($value) { parent::enableCache($value); $this->smarty->caching = $this->cache; if ($this->cache) { $this->smarty->cache_lifetime = 120; } }