Clearing ActiveRecord cache

前端 未结 4 1994
时光取名叫无心
时光取名叫无心 2021-02-04 00:02

I\'m building a command line application using ActiveRecord 3.0 (without rails). How do I clear the query cache that ActiveRecord maintains?

4条回答
  •  不要未来只要你来
    2021-02-04 00:48

    Have a look at the method clear_query_cache in http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/QueryCache.html

提交回复
热议问题