Fix followers hash cache not being invalidated on account merge (#15256)
Also clear relationships cache.lolsob-rspec
parent
27a1419a65
commit
39824d29f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue