Categories
General

強制 ActiveRecord 不要 cache

Module: ActiveRecord::QueryCache::ClassMethods

今天處理一個程式片段時,為了抓到正確、最新的資料,從 [Rail Spikes: Disabling ActiveRecord query caching when needed] 學到的東西。

CC BY-SA 4.0 This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.