Remove caching in cache_collection
(#29862)
This commit is contained in:
parent
86807e4799
commit
c3be5a3d2e
8 changed files with 14 additions and 93 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue