Hello,
I am using Django 1.8.2 and caching my views using the @cache_page
decorator:
@cache_page(60 * 5)
def view_name(request, obj_id):
[...]
Is there a way to clear the cached entry programmatically, prior of the
cache timeout?
Thanks,
Dimitris
--
You received this message because you
Thanks for your reply Tim.
I have tried the code provided, but it seems that the cache is not deleted.
I am testing the code in development, which uses
django.core.cache.backends.locmem.LocMemCache. I don't know if that makes
any difference.
Also, I have noticed that the path in *url.path*
You need to upgrade pip.
See
https://docs.djangoproject.com/en/1.9/releases/1.9/#syntaxerror-when-installing-django-with-pip-1-5-6
On Wednesday, 2 December 2015 12:20:49 UTC+2, Mike wrote:
>
> pip install django
>> Downloading/unpacking django
>> Downloading Django-1.9-py2.py3-none-any.whl (6
3 matches
Mail list logo