Remove caching in cache_collection (#29862)
This commit is contained in:
1 parent
f3430eebbb
commit
babbf6017d
8 files changed
+14
-86
No files matched your search
@@ -14,6 +14,10 @@ module Cacheable
|
||||
includes(@cache_associated)
|
||||
end
|
||||
|
||||
def preload_cacheable_associations(records)
|
||||
ActiveRecord::Associations::Preloader.new(records: records, associations: @cache_associated).call
|
||||
end
|
||||
|
||||
def cache_ids
|
||||
select(:id, :updated_at)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user