Hi,

I'm pretty new to django so please bear with me.

The Server:
lighttpd
python 2.5
django 0.96

The Code:
>>> settings.py

# Cache settings
CACHE_MIDDLEWARE_SECONDS = 5*60
CACHE_BACKEND = 'file:///var/www/data/some_project/tmp/file_cache/?
timeout=300&max_entries=500'

# Middleware
MIDDLEWARE_CLASSES = (
    'django.middleware.cache.CacheMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

>>> views.py
@never_cache
def some_view(request):
    ...

@cache_control(no_cache=True, max_age=0)
def some_view(request):
    ...

Okay so I think i've got the above right but all the views with the
above decorator cache anyway and as this is being used for clients to
upload and manage property listings. I'm stumped can anyone help?

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to