Lines Matching refs:cache
52 private $cache; variable in Twig\\Environment
253 return $original ? $this->originalCache : $this->cache;
259 * @param CacheInterface|string|false $cache A Twig\Cache\CacheInterface implementation,
263 public function setCache($cache) argument
265 if (\is_string($cache)) {
266 $this->originalCache = $cache;
267 $this->cache = new FilesystemCache($cache);
268 } elseif (false === $cache) {
269 $this->originalCache = $cache;
270 $this->cache = new NullCache();
271 } elseif ($cache instanceof CacheInterface) {
272 $this->originalCache = $this->cache = $cache;
399 $key = $this->cache->generateKey($name, $mainCls);
401 … if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
402 $this->cache->load($key);
409 $this->cache->write($key, $content);
410 $this->cache->load($key);