mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Performance enhancement
Don't use deep handing lastMod check if we don't have to
This commit is contained in:
parent
3a6bf35f06
commit
b1a86b5f9f
@ -309,8 +309,14 @@ class CombineAssets
|
||||
$this->setHashOnCombinerFilters($cacheKey);
|
||||
|
||||
$combiner = $this->prepareCombiner($assets);
|
||||
$factory = new AssetFactory($this->localPath);
|
||||
$lastMod = $factory->getLastModified($combiner);
|
||||
|
||||
if ($this->useDeepHashing) {
|
||||
$factory = new AssetFactory($this->localPath);
|
||||
$lastMod = $factory->getLastModified($combiner);
|
||||
}
|
||||
else {
|
||||
$lastMod = $combiner->getLastModified();
|
||||
}
|
||||
|
||||
$cacheInfo = [
|
||||
'version' => $cacheKey.'-'.$lastMod,
|
||||
|
Loading…
x
Reference in New Issue
Block a user