Re: Cache for individualt request.user???

2012-04-27 Thread Nikolas Stevenson-Molnar
I realize this post is a bit old now. But I believe you could resolve this issue by adding @vary_on_cookie like so: @login_required @vary_on_cookie def webapp(request): ... You'll want to test it, of course, but that should create a different cache for each user (since session info is stored

Cache for individualt request.user???

2012-03-06 Thread kase
i don't know if the cache work for views with the content dependent from user... example. @login_required def webapp(request): grupos = Grupo.objects.filter(usuarios = request.user).order_by('grupo') return render_to_response('accounting/webapp.html',{'grupos':grupos},RequestContext