0
0
Fork 0

Fix obsolete cache key in status cache invalidation logic (#26934)

This commit is contained in:
Claire 2023-09-15 19:52:28 +02:00 committed by GitHub
parent 5d93e98da4
commit e4f5114aaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View file

@ -407,6 +407,6 @@ class MediaAttachment < ApplicationRecord
end
def reset_parent_cache
Rails.cache.delete("statuses/#{status_id}") if status_id.present?
Rails.cache.delete("v3:statuses/#{status_id}") if status_id.present?
end
end