On Sat, 2006-08-12 at 21:17 +0000, ToddG wrote: > Maciej, you mentioned "turned on the caching" -- that sounds like using > the caching middleware, not the view-level cache functionality. Or am I > guessing wrong?
You're guessing right. Sorry for not being specific enough. > To my understanding if you need to be able to manually get and clear > cached pages you'll need to use the view level caching, not the > middleware. So I switched to per-view caching, according to the docs: http://www.djangoproject.com/documentation/cache/#the-per-view-cache from django.views.decorators.cache import cache_page def slashdot_this(request): ... slashdot_this = cache_page(slashdot_this, 60 * 15) I removed the middleware references from the settings. The keys still look the same, with the MD5-sum at the end. Do I need to use the cache.set() and cache.get() methods then? -- Maciej Bliziński http://automatthias.wordpress.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---