开发者

What is the best way to develop and test cache in a Ruby on rails application?

I am u开发者_开发百科sing Ruby on Rails 3 and I would like to start "to code" the cache system.

I am working on localhost in development mode. I heard that working in development mode it is possible to face some "confusing" errors. Why? What is the best way to that cache?


You just need a clear mind.

In development.rb, change this:

  config.action_controller.perform_caching = true

Then work and test. It will write the cached pages in /public, and fragments in /tmp/cache

Here are great articles to understand caching in Rails:

http://broadcastingadam.com/2012/07/advanced_caching_revised

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜