mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 17:44:24 +00:00
Fix followers hash cache not being invalidated on account merge (#15256)
Also clear relationships cache.
This commit is contained in:
parent
fbff89be03
commit
9136be480f
|
@ -39,5 +39,10 @@ module AccountMerging
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Some follow relationships have moved, so the cache is stale
|
||||||
|
Rails.cache.delete_matched("followers_hash:#{id}:*")
|
||||||
|
Rails.cache.delete_matched("relationships:#{id}:*")
|
||||||
|
Rails.cache.delete_matched("relationships:*:#{id}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue