I would use signals for this. For example, you could hook on post_save signal, so whenever a model gets saved, you refresh the cache etc.
Sebastjan On Sat, Mar 29, 2008 at 4:35 PM, Mike H <[EMAIL PROTECTED]> wrote: > > Hi, > > I have models, views and managers that cache various things in the > application we're building. It all works fantastically, once > everything is cache we got zero queries run until the cache expires. > However, if the cache is turned on while we run our unit tests, things > start failing as we get back cached versions of things instead of the > data that the tests are setting up... > > So, is there a standard way of clearing cache? There seems to be a > method on the locmem backend but it's not a standard interface across > all backends. > > Any ideas? > > Thanks, > > Mike > > > > -- Sebastjan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---