about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-03-22 15:47:44 +0100
committerGitHub <noreply@github.com>2023-03-22 15:47:44 +0100
commit2626097869c9520c21aaba73c9bcfe72c0f25f28 (patch)
tree13f828fddfaddf666babcc1ddfbf54338fc1d2e6 /app/models
parenta7a578a05553cc3ac34f6cd3c60b43117b309763 (diff)
Fix Rails cache namespace being overriden with `v2` for cached statuses (#24202)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 2e32c3f16..2757497db 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -140,6 +140,10 @@ class Status < ApplicationRecord
 
   REAL_TIME_WINDOW = 6.hours
 
+  def cache_key
+    "v2:#{super}"
+  end
+
   def searchable_by(preloaded = nil)
     ids = []