diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2022-03-08 11:33:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 11:33:16 +0300 |
commit | 4c04cd1ed3deb8228fcc9ff503ce013506f8d807 (patch) | |
tree | 029e3c0134dd2e47751f34d30c340ddfd00ae93b /core | |
parent | a3bfb7bf5a06d173b9d733587d164890282dfed1 (diff) |
the cachebuster set in render() does not appear to be used for JS files, which is different in development mode (#18895)
Diffstat (limited to 'core')
-rw-r--r-- | core/View.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/View.php b/core/View.php index 7532a3337e..99c94b8906 100644 --- a/core/View.php +++ b/core/View.php @@ -357,7 +357,7 @@ class View implements ViewInterface $cache->save('cssCacheBusterId', $cssCacheBusterId); } - $tagJs = 'cb=' . $cacheBuster->piwikVersionBasedCacheBuster(); + $tagJs = 'cb=' . ($this->cacheBuster ?? $cacheBuster->piwikVersionBasedCacheBuster()); $tagCss = 'cb=' . $cssCacheBusterId; $pattern = array( |