[COMPONENTS][Avatar] Delete correct cache key on avatar update
This commit is contained in:
parent
d915b4b628
commit
92d5f3ec1e
@ -68,8 +68,8 @@ class Avatar extends Component
|
|||||||
foreach (['full', 'big', 'medium', 'small'] as $size) {
|
foreach (['full', 'big', 'medium', 'small'] as $size) {
|
||||||
foreach ([Router::ABSOLUTE_PATH, Router::ABSOLUTE_URL] as $type) {
|
foreach ([Router::ABSOLUTE_PATH, Router::ABSOLUTE_URL] as $type) {
|
||||||
Cache::delete("avatar-url-{$actor_id}-{$size}-{$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;
|
return Event::next;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user