1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-10 16:14:18 +02:00

lessphp: use updated timestamp from cache

no need to calculate the timestamp ourselves each time the calculated value already present in cache object
This commit is contained in:
Elan Ruusamäe
2016-10-13 12:37:08 +03:00
parent 60b89dcc0d
commit 78d5921f91

View File

@@ -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'];
}
/**