diff --git a/modules/system/classes/CombineAssets.php b/modules/system/classes/CombineAssets.php index 7c903ff1f..e2e4d84f6 100644 --- a/modules/system/classes/CombineAssets.php +++ b/modules/system/classes/CombineAssets.php @@ -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,