summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-05-09 12:27:46 +0200
committerjld3103 <jld3103yt@gmail.com>2023-05-15 18:18:21 +0200
commit2a19753cf744998b7daf3cf11fb1144325d9a7e2 (patch)
tree0ca308b44f4da52f18f5cb7bd44e3b50832e8151 /lib/private
parente294045223992056051659f620be5a49ece6d8e8 (diff)
downloadnextcloud-server-2a19753cf744998b7daf3cf11fb1144325d9a7e2.tar.gz
nextcloud-server-2a19753cf744998b7daf3cf11fb1144325d9a7e2.zip
Clear generated avatar caches
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Repair/ClearGeneratedAvatarCache.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Repair/ClearGeneratedAvatarCache.php b/lib/private/Repair/ClearGeneratedAvatarCache.php
index 844bf6cf346..fb3b42847dc 100644
--- a/lib/private/Repair/ClearGeneratedAvatarCache.php
+++ b/lib/private/Repair/ClearGeneratedAvatarCache.php
@@ -42,7 +42,7 @@ class ClearGeneratedAvatarCache implements IRepairStep {
}
public function getName(): string {
- return 'Clear every generated avatar on major updates';
+ return 'Clear every generated avatar';
}
/**
@@ -51,8 +51,9 @@ class ClearGeneratedAvatarCache implements IRepairStep {
private function shouldRun(): bool {
$versionFromBeforeUpdate = $this->config->getSystemValueString('version', '0.0.0.0');
- // was added to 25.0.0.10
- return version_compare($versionFromBeforeUpdate, '25.0.0.10', '<=');
+ // This job only runs if the server was on a version lower than or equal to 27.0.0 before the upgrade.
+ // To clear the avatar cache again, bump the version to the currently released version (and change the operator to <= if it's not the master branch) and wait for the next release.
+ return version_compare($versionFromBeforeUpdate, '27.0.0', '<');
}
public function run(IOutput $output): void {