public function Twig_Environment::setCache

Sets the cache directory or false if cache is disabled.

Parameters

string|false $cache The absolute path to the compiled templates,: or false to disable cache

1 call to Twig_Environment::setCache()
Twig_Environment::__construct in drupal/core/vendor/twig/twig/lib/Twig/Environment.php
Constructor.

File

drupal/core/vendor/twig/twig/lib/Twig/Environment.php, line 239

Class

Twig_Environment
Stores the Twig configuration.

Code

public function setCache($cache) {
  $this->cache = $cache ? $cache : false;
}