Returns true if the template is still fresh.
Besides checking the loader for freshness information, this method also checks if the enabled extensions have not changed.
string $name The template name:
timestamp $time The last modification time of the cached template:
Boolean true if the template is fresh, false otherwise
public function isTemplateFresh($name, $time) {
foreach ($this->extensions as $extension) {
$r = new ReflectionObject($extension);
if (filemtime($r
->getFileName()) > $time) {
return false;
}
}
return $this->loader
->isFresh($name, $time);
}