[COMPONENTS][Avatar] Delete correct cache key on avatar update

This commit is contained in:
Hugo Sales 2021-12-02 15:34:51 +00:00
parent d915b4b628
commit 92d5f3ec1e
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 1 additions and 1 deletions

View File

@ -68,8 +68,8 @@ class Avatar extends Component
foreach (['full', 'big', 'medium', 'small'] as $size) {
foreach ([Router::ABSOLUTE_PATH, Router::ABSOLUTE_URL] as $type) {
Cache::delete("avatar-url-{$actor_id}-{$size}-{$type}");
Cache::delete("avatar-file-info-{$actor_id}-{$size}-{$type}");
}
Cache::delete("avatar-file-info-{$actor_id}-{$size}");
}
return Event::next;
}