开发者

RAILS: Stop Caching for Testing

开发者 https://www.devze.com 2023-02-04 22:43 出处:网络
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

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

精彩评论

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