Fix cache update after uploading the template file (when auto-update is enabled).

If in the process of uploading the template file, a render() is called, the partially uploaded file gets into the cache and after the template file is fully uploaded, the cache is not updated anymore.
This commit is contained in:
AY_W
2018-03-31 20:48:55 +03:00
committed by Fabien Potencier
parent 3bc9686dc5
commit 50d990e23d
+1 -1
View File
@@ -175,7 +175,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
public function isFresh($name, $time)
{
return filemtime($this->findTemplate($name)) <= $time;
return filemtime($this->findTemplate($name)) < $time;
}
protected function findTemplate($name)