Skip to content

Commit 8596b91

Browse files
committed
fix(theming): make cache buster depend on the app version
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent fbbc104 commit 8596b91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/theming/lib/Util.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,13 @@ public function getCacheBuster(): string {
311311
if (!is_null($user)) {
312312
$userId = $user->getUID();
313313
}
314+
$themingAppVersion = $this->appManager->getAppVersion('theming');
314315
$userCacheBuster = '';
315316
if ($userId) {
316317
$userCacheBusterValue = (int)$this->config->getUserValue($userId, 'theming', 'userCacheBuster', '0');
317318
$userCacheBuster = $userId . '_' . $userCacheBusterValue;
318319
}
319320
$systemCacheBuster = $this->config->getAppValue('theming', 'cachebuster', '0');
320-
return substr(sha1($userCacheBuster . $systemCacheBuster), 0, 8);
321+
return substr(sha1($themingAppVersion . $userCacheBuster . $systemCacheBuster), 0, 8);
321322
}
322323
}

0 commit comments

Comments
 (0)