Symfony\Component\Templating\Loader\FilesystemLoader::isFresh PHP Method

isFresh() public method

Returns true if the template is still fresh.
public isFresh ( Symfony\Component\Templating\TemplateReferenceInterface $template, integer $time )
$template Symfony\Component\Templating\TemplateReferenceInterface A template
$time integer The last modification time of the cached template (timestamp)
    public function isFresh(TemplateReferenceInterface $template, $time)
    {
        if (false === $storage = $this->load($template)) {
            return false;
        }

        return filemtime((string) $storage) < $time;
    }