From: Fabien Potencier Date: Tue, 3 Apr 2012 05:20:03 +0000 (+0200) Subject: fixed filesystem loader freshness logic for high traffic websites (closes #682) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=999e54efb0ac83d0a8175365269eb0384d60eab7;p=web%2Fkonrad%2Ftwig.git fixed filesystem loader freshness logic for high traffic websites (closes #682) --- diff --git a/CHANGELOG b/CHANGELOG index e177e0c..ab6f198 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,6 @@ * 1.6.5 (2012-XX-XX) - * n/a + * fixed filesystem loader freshness logic for high traffic websites * 1.6.4 (2012-04-02) diff --git a/lib/Twig/Loader/Filesystem.php b/lib/Twig/Loader/Filesystem.php index be348aa..5cd40f9 100644 --- a/lib/Twig/Loader/Filesystem.php +++ b/lib/Twig/Loader/Filesystem.php @@ -106,7 +106,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface */ public function isFresh($name, $time) { - return filemtime($this->findTemplate($name)) < $time; + return filemtime($this->findTemplate($name)) <= $time; } protected function findTemplate($name)