Skip to content

Commit

Permalink
Merge pull request #46434 from nextcloud/backport/46428/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(theming): Don't reset the cachebuster value when we reset theming
  • Loading branch information
SystemKeeper authored Jul 11, 2024
2 parents 12d9c1c + 276adec commit 0986d29
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 @@ -460,7 +460,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 0986d29

Please sign in to comment.