[Answer]-Django per-view caching not caching

1👍

I think there are some mistakes in your code 🙂

  1. UpdateCacheMiddleware must be the first middleware and FetchFromCacheMiddleware must be the last (https://docs.djangoproject.com/en/dev/topics/cache/#the-per-site-cache)
  2. Dont know if ‘django_pylibmc’ is a shortcut in your cachebackend but in my settings it is “django.core.cache.backends.memcached.PyLibMCCache”

Maybe that helps.

Leave a comment