mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update StatusService, invalidate profile embed cache on deletion
This commit is contained in:
parent
3f8acb1266
commit
acaf630dee
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ class StatusService {
|
|||
|
||||
public static function del($id)
|
||||
{
|
||||
$status = self::get($id);
|
||||
if($status && isset($status['account']) && isset($status['account']['id'])) {
|
||||
Cache::forget('profile:embed:' . $status['account']['id']);
|
||||
}
|
||||
Cache::forget('status:thumb:nsfw0' . $id);
|
||||
Cache::forget('status:thumb:nsfw1' . $id);
|
||||
Cache::forget('pf:services:sh:id:' . $id);
|
||||
|
|
Loading…
Reference in a new issue