Rails Caching: Dynamic Fragments
Posted on December 3rd, 2008
I am finally getting around to implementing caching on my Rails application that I’ve been working on adamantly for the past couple of months. For the time being, I am using a memcached server with simple action and page caching. I ran into a few problems with my first few attempts at fragment caching and decided it wasn’t really necessary for the time being. I needed a simple method of including small sections of dynamic code in an otherwise static page. I then wanted to use action caching on the resulting view. I’ll outline a simple method I used to achieve this.







