Testing page caching with new plugin
Posted by David October 10, 2006 @ 03:21 PM
Damien Merenne has created a swank plugin for page cache testing. Whether caching has happened or they’ve been expired. Quite useful for testing sweeper logic, which, like any caching techniques, are often susceptible to subtle invalidation bugs. Hopefully Merenne will continue work on his plugin and extend it to deal with action and fragment caching too. That’d put it on the fast track for core inclusion.

Cool stuff!
PS anyone know why rubyforge is still down?
Hopefully Merenne will continue work on his plugin and extend it to deal with action and fragment caching too. That’d put it on the fast track for core inclusion.
David’s subtle way of saying, work code monkey and I’ll reward you with including it in the core framework.
could you please fix the RSS feed to be up to date?
It works for code monkey ;) I released a second version which support action and fragment caching. I’m still not sure of the API but the functionality is there.
I’ve also cleaned up some code of mine that provides similar functionality, but takes a different implementation approach.
Instead of mocking out the caching methods, it swaps out the caches with temporary versions for duration of the assertion. This should work for unit, functional and integration tests, though I’ve not used it anger with all of these yet. I’m not sure which approach is best, but if interested, take a look at:
http://svn.popdog.net/plugins/caching_extras/tags/REL-0.1/