Skip to content

Commit

Permalink
Fixed issue #19367: javascript file are outdated after update (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Mar 15, 2024
1 parent 4155987 commit defd589
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion application/core/LSYii_AssetManager.php
Expand Up @@ -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)
)
);
}

/**
Expand Down

0 comments on commit defd589

Please sign in to comment.