Reputation: 8539
I love django-staticgenerator. Unfortunately you can't use it in cases in which you have to display different content depending on the user, plus is not being actively developed.
Is it possible to return the cached response only to non-logged in users?
I saw an app that used nginx to do it, is it possible to do it with apache?
Has anybody tried this solution and can you suggest if there is any actively developed django app that serves this purpose?
Thanks!
Upvotes: 1
Views: 190
Reputation: 239460
Have you tried CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
? Assuming whatever caching you're using utilizes Django's cache framework, that should do the trick.
Upvotes: 1