| Path: | lib/cell/caching.rb |
| Last Update: | Thu Feb 26 20:02:27 +0100 2009 |
To improve performance rendered state views can be cached using Rails’ caching mechanism. If this it configured (e.g. using our fast friend memcached) all you have to do is to tell Cells which state you want to cache. You can further attach a proc for deciding versions or to instruct re-rendering.
As always I stole a lot of code, this time from Lance Ivy <cainlevy@gmail.com> and his fine components plugin at github.com/cainlevy/components.