← Back to team overview

launchpad-dev team mailing list archive

Re: sql derived data, eager loading and cachedproperty

 

On Thu, Aug 12, 2010 at 6:10 PM, Jamu Kakar <jkakar@xxxxxxxx> wrote:>>
I'm working on an automatic invalidation facility for our model
>> classes, so that they will invalidate when storm invalidates an
>> object.
>
> If you provide a __storm_invalidated__ method (taking no parameters)
> on your Storm objects it will be invoked when Storm invalidates the
> object.  We use this in Landscape all over the place to invalidate
> model-level caches and it's been working well for us.

Thanks, yes that was the hook I was planning on using. I've glued it
and cacheproperty together:

https://code.edge.launchpad.net/~lifeless/launchpad/cachedproperty/+merge/32728

-Rob



References