mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
fix(theming): Don't reset the cachebuster value when we reset theming
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
1aa86f20ea
commit
abe6442b5b
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue