On 6/26/06, Wei Litao <[EMAIL PROTECTED]> wrote: > I have checked the cache document, it said that an view can have an > @cache_page(60 * 15) decorator to store it on a cache, But it didn't say how > to fluch it. Is there some api to invalid a view cache manually? I want to > invalid some view cache when calling another view.
Check the part of the cache document entitled "Low-level API" (http://www.djangoproject.com/documentation/cache/#the-low-level-cache-api) It looks like you can just import the 'cache' object, and call 'delete', passing in the URL you want to invalidate. Warning: I've not actually used the cache framework yet, so I might be wrong. Jay P. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---