Skip to content

Commit

Permalink
Merge pull request #46428 from nextcloud/fix/noid/fix-cypress-test-ca…
Browse files Browse the repository at this point in the history
…chebuster

fix(theming): Don't reset the cachebuster value when we reset theming
  • Loading branch information
SystemKeeper authored Jul 11, 2024
2 parents 1a41cd5 + 4f12584 commit d707441
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/theming/lib/ThemingDefaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,11 @@ public function set($setting, $value): void {
* 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();
}

Expand Down

0 comments on commit d707441

Please sign in to comment.