Fix Rails cache namespace being overriden with v2
for cached statuses (#24202)
This commit is contained in:
parent
a7a578a055
commit
2626097869
2 changed files with 6 additions and 2 deletions
|
@ -140,6 +140,10 @@ class Status < ApplicationRecord
|
|||
|
||||
REAL_TIME_WINDOW = 6.hours
|
||||
|
||||
def cache_key
|
||||
"v2:#{super}"
|
||||
end
|
||||
|
||||
def searchable_by(preloaded = nil)
|
||||
ids = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue