diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-10-14 12:54:51 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-10-14 16:18:41 +0200 |
commit | 19f35f42bcd527a08952681b07d84d008e583437 (patch) | |
tree | 036366319296ae16690e6c5b632373358fea5419 /apps/theming/lib/Controller | |
parent | d77e8322239754ef68f9dfe8c3687a39f94cc881 (diff) | |
download | nextcloud-server-19f35f42bcd527a08952681b07d84d008e583437.tar.gz nextcloud-server-19f35f42bcd527a08952681b07d84d008e583437.zip |
Improve cache buster for user backgrounds
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/theming/lib/Controller')
-rw-r--r-- | apps/theming/lib/Controller/UserThemeController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Controller/UserThemeController.php b/apps/theming/lib/Controller/UserThemeController.php index 31acfc1d97c..635dad34736 100644 --- a/apps/theming/lib/Controller/UserThemeController.php +++ b/apps/theming/lib/Controller/UserThemeController.php @@ -156,7 +156,7 @@ class UserThemeController extends OCSController { * @NoAdminRequired */ public function setBackground(string $type = 'default', string $value = ''): JSONResponse { - $currentVersion = (int)$this->config->getUserValue($this->userId, Application::APP_ID, 'backgroundVersion', '0'); + $currentVersion = (int)$this->config->getUserValue($this->userId, Application::APP_ID, 'userCacheBuster', '0'); try { switch ($type) { @@ -182,7 +182,7 @@ class UserThemeController extends OCSController { } $currentVersion++; - $this->config->setUserValue($this->userId, Application::APP_ID, 'backgroundVersion', (string)$currentVersion); + $this->config->setUserValue($this->userId, Application::APP_ID, 'userCacheBuster', (string)$currentVersion); return new JSONResponse([ 'type' => $type, |