clearTemplateCache() public method

Clears the internal template cache.
public clearTemplateCache ( )
Example #1
0
 public function render($name, array $values = array())
 {
     if (defined('ENV_DEV')) {
         $this->engine->clearCacheFiles();
         $this->engine->clearTemplateCache();
     }
     return $this->engine->render($name . $this->suffix, $values);
 }
Example #2
0
 /**
  * @return void
  */
 public function clearCache()
 {
     $E = new \Twig_Environment(null, array('cache' => realpath(__DIR__ . self::$Cache)));
     $E->clearCacheFiles();
     $E->clearTemplateCache();
 }
Example #3
0
 /**
  * [clearTemplateCache description]
  * @return [type] [description]
  */
 public function clearTemplateCache()
 {
     $this->twig->clearTemplateCache();
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function reset()
 {
     $this->twig->clearCacheFiles();
     $this->twig->clearTemplateCache();
 }