mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #46428 from nextcloud/fix/noid/fix-cypress-test-cachebuster
fix(theming): Don't reset the cachebuster value when we reset theming
This commit is contained in:
commit
d70744136d
1 changed files with 4 additions and 0 deletions
|
|
@ -437,7 +437,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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue