Thursday, February 3, 2011

Memcache configured, but not used !?

I did the following to enable memcache:

1 ) install memcache and it is running with default values: /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1

2) put a decorator over my view @cache_page(60 * 2)

3) enable cache panel in debug toolbar

The Problem is, that the edebug panel says 0 for all the cache values, so I suppose it is not used.

How can I debug this problem further?

I did not put any CacheMiddleware in settings.py cause I think this is not necessary with the per-view cache?

Thanks!

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

No comments:

Post a Comment