Twig_Environment::isTemplateFresh
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.
Signature
public function isTemplateFresh(string
$name,
timestamp
$time )
Parameters
$name
— string- The template name
$time
— object- The last modification time of the cached template
Returns
- Boolean
- true if the template is fresh, false otherwise