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.

Posted in Sightings | 5 comments

Comments

  1. Ben on 10 Oct 18:45:

    Cool stuff!

    PS anyone know why rubyforge is still down?

  2. Tim on 11 Oct 22:51:

    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.

  3. RSS Reader on 12 Oct 15:58:

    could you please fix the RSS feed to be up to date?

  4. Damien Merenne on 18 Oct 10:33:

    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.

  5. Tom Ward on 23 Oct 14:08:

    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/