开发者

RAILS: Stop Caching for Testing

We are load testing an application. I just want to check how it behaves if it hits database every time a reques开发者_Python百科t is made. I want to stop all type of caching temporarily. Is there a to do this?

Thanks,

Imran


In development mode by default no caching performed. You can adjust caching in config/environments/development.rb and config/environments/production.rb

E.g., there're following values in the production config by default

config.cache_classes = true
config.action_controller.perform_caching = true
config.action_view.cache_template_loading = true
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜