From 78d5921f911ea19d4f863cb0ed75976c055dc49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 13 Oct 2016 12:37:08 +0300 Subject: [PATCH] lessphp: use updated timestamp from cache no need to calculate the timestamp ourselves each time the calculated value already present in cache object --- lib/Minify/LessCssSource.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/Minify/LessCssSource.php b/lib/Minify/LessCssSource.php index e5a4314..1e3fa1b 100644 --- a/lib/Minify/LessCssSource.php +++ b/lib/Minify/LessCssSource.php @@ -30,13 +30,7 @@ class Minify_LessCssSource extends Minify_Source { public function getLastModified() { $cache = $this->getCache(); - $lastModified = 0; - foreach ($cache['files'] as $mtime) { - $lastModified = max($lastModified, $mtime); - - } - - return $lastModified; + return $cache['updated']; } /**