mirror of
https://github.com/mrclay/minify.git
synced 2025-08-14 01:54:11 +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() {
|
public function getLastModified() {
|
||||||
$cache = $this->getCache();
|
$cache = $this->getCache();
|
||||||
|
|
||||||
$lastModified = 0;
|
return $cache['updated'];
|
||||||
foreach ($cache['files'] as $mtime) {
|
|
||||||
$lastModified = max($lastModified, $mtime);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return $lastModified;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user