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:
@@ -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'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user