Skip to content

Commit 02a020f

Browse files
committed
Clear generated avatar caches
Signed-off-by: jld3103 <[email protected]>
1 parent 2c1bc43 commit 02a020f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/private/Repair/ClearGeneratedAvatarCache.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ public function getName(): string {
5151
private function shouldRun(): bool {
5252
$versionFromBeforeUpdate = $this->config->getSystemValueString('version', '0.0.0.0');
5353

54-
// was added to 25.0.0.10
55-
return version_compare($versionFromBeforeUpdate, '25.0.0.10', '<=');
54+
// This job only runs if the server was on a version lower than or equal to 27.0.0 before the upgrade.
55+
// 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.
56+
return version_compare($versionFromBeforeUpdate, '27.0.0', '<');
5657
}
5758

5859
public function run(IOutput $output): void {

0 commit comments

Comments
 (0)