Remove caching in cache_collection (#29862)

This commit is contained in:
Claire authored and GitHub committed 2024-04-08 13:46:13 +00:00
1 parent f3430eebbb
commit babbf6017d
8 files changed
+14 -86

No files matched your search

+4
View File
@@ -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