[Catalyst] DBIC v Cache: What are catalyst best practices for caching DBIC results (with relationships included)

Matt S Trout dbix-class at trout.me.uk
Thu Nov 15 14:58:53 GMT 2007

On Wed, Nov 14, 2007 at 05:02:50PM -0800, Ashley Pond V wrote:
> 'Cause I'm outta the loop. That looks quite nice. The doc is a bit terse
> (though that might really be all there is to it). Can you clear just a
> part of the cache? It's okay if not but I'd like to be able to clear
> one document or result_set out when it's updated without messing with
> others that haven't changed.
> I suppose you might be able to do that by refetching it?

Get resultset object. Then

$rs->cursor->clear_cache; # deletes data from cache

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

More information about the Catalyst mailing list