[Catalyst] DBIC v Cache: What are catalyst best practices for
caching DBIC results (with relationships included)
Ashley Pond V
apv at sedition.com
Thu Nov 15 01:02:50 GMT 2007
'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?
Is there any code visible out there -- especially Cat code -- that
is using it to take a look at?
Thanks, Matt!
-Ashley
On Nov 14, 2007, at 4:43 PM, Matt S Trout wrote:
> On Wed, Nov 14, 2007 at 12:08:29PM -0800, Ashley Pond V wrote:
>> I'm having trouble getting Plugin::Cache to handle DBIC objects
>> correctly. Past instruction, and recent refresher, from MST shows
>> that you have to reset/revive the result source and this works for a
>> single object but blows up for prefetch.
>
> Why not just use DBIx::Class::Cursor::Cached ?
>
> --
> 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/
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/
> catalyst at lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list