From defd589680e0c5f5f193926bac89aae34f572ced Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Fri, 15 Mar 2024 17:29:06 +0100 Subject: [PATCH] Fixed issue #19367: javascript file are outdated after update (#3707) --- application/core/LSYii_AssetManager.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/application/core/LSYii_AssetManager.php b/application/core/LSYii_AssetManager.php index e414c6b907b..84eab553b28 100644 --- a/application/core/LSYii_AssetManager.php +++ b/application/core/LSYii_AssetManager.php @@ -22,7 +22,14 @@ class LSYii_AssetManager extends CAssetManager /* @inheritdoc */ protected function hash($path) { - return sprintf('%x', crc32($path . Yii::app()->getConfig('globalAssetsVersion'))); + return sprintf( + '%x', + crc32( + $path . + App()->getConfig('versionnumber') . // Always reset with version number + App()->getConfig('globalAssetsVersion') // Force reset between version number (for dev user) + ) + ); } /**