/** * @inheritdoc */ public function isCacheFresh($template) { $cacheTime = $this->environment->getTemplateCache()->getCreatedTime($this->getCacheKey($template)); return filemtime($this->getPath($template)) < $cacheTime; }
/** * @inheritdoc */ public function isCacheFresh($template) { return $this->environment->getTemplateCache()->exists($this->getCacheKey($template)); }