You are here

public function Twig_Environment::getCache in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Environment.php \Twig_Environment::getCache()

Gets the current cache implementation.

Parameters

bool $original Whether to return the original cache option or the real cache instance:

Return value

Twig_CacheInterface|string|false A Twig_CacheInterface implementation, an absolute path to the compiled templates, or false to disable cache

File

vendor/twig/twig/lib/Twig/Environment.php, line 247

Class

Twig_Environment
Stores the Twig configuration.

Code

public function getCache($original = true) {
  return $original ? $this->originalCache : $this->cache;
}