Merge pull request #46433 from nextcloud/backport/46428/stable28

[stable28] fix(theming): Don't reset the cachebuster value when we reset theming
This commit is contained in:
Marcel Müller 2024-07-11 12:07:28 +02:00 committed by GitHub
commit 3f06411700
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -460,7 +460,11 @@ class ThemingDefaults extends \OC_Defaults {
* Revert all settings to the default value
*/
public function undoAll(): void {
// Remember the current cachebuster value, as we do not want to reset this value
// Otherwise this can lead to caching issues as the value might be known to a browser already
$cacheBusterKey = $this->config->getAppValue('theming', 'cachebuster', '0');
$this->config->deleteAppValues('theming');
$this->config->setAppValue('theming', 'cachebuster', $cacheBusterKey);
$this->increaseCacheBuster();
}