You are here

public function Twig_Environment::setCache in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Environment.php \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 vendor/Twig/Environment.php
Constructor.

File

vendor/Twig/Environment.php, line 232

Class

Twig_Environment
Stores the Twig configuration.

Code

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