Skip to content
Snippets Groups Projects
Unverified Commit 9136be48 authored by ThibG's avatar ThibG Committed by GitHub
Browse files

Fix followers hash cache not being invalidated on account merge (#15256)

Also clear relationships cache.
parent fbff89be
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment