Move bufferized tags to RedisCache (#4817)

This commit is contained in:
jeffin sam 2019-11-15 04:07:20 +05:30 committed by Mac Siri
parent 672d64c2ca
commit fbbb02e241

View file

@ -54,7 +54,7 @@ class Tag < ActsAsTaggableOn::Tag
end
def self.bufferized_tags
Rails.cache.fetch("bufferized_tags_cache", expires_in: 2.hours) do
RedisRailsCache.fetch("bufferized_tags_cache", expires_in: 2.hours) do
where.not(buffer_profile_id_code: nil).pluck(:name)
end
end