Browse Source
Fix followers hash cache not being invalidated on account merge (#15256)
Also clear relationships cache.
master
ThibG
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
app/models/concerns/account_merging.rb
|
|
@ -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 |