mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 08:19:05 +00:00
Fix followers hash cache not being invalidated on account merge (#15256)
Also clear relationships cache.
This commit is contained in:
@@ -39,5 +39,10 @@ module AccountMerging
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user