Topic: fragment caching questions
I've got a mini CMS-like system that displays pages from a db. I want to implement caching and I think fragment caching to be best as the other parts of the page depend on who is logged in.
I've setup fragment caching following the tutorials at
The problem is, it never seems to cache anything. I've checked every path that rails might conceivably be storing the cached pages but nothing appears.
According to the development log my fragment is being cached, however I'm really not sure as I can't see anything being created:
Rendering template within layouts/default
Cached fragment hit: views/xxx.genestate.com/links
Using read_fragment in the controller it does skip performing the SQL queries so it seems something is happening right. I'm just not convinced until I can see the files being generated.
Can anyone give me a hint what is going on with the caching? BTW I'm using rails-2.1.0.
Thanks for any advice.