I'd having my first tries at caching in Rails, and would like to
experiment with fragmentcaching. I have some problems with getting any
results and i don't know exactly what's going on now.
I have this in my development.rb...
config.action_controller.perform_caching = true
config.action_controller.cache_store = :file_store,
RAILS_ROOT + "/public/cache/"
and this is my layout-viewfile...
- cache "main_menu" do
= render :partial => 'menu'
I see nothing happening though, and no files appear in public/cache,
so i'm wondering if i overlooked something. The menu-partial loops
through all categories (it has a Category.find(:all).each in it) but i
still see that SQL-query in my terminal.