Re: session and caching

2011-07-13 Thread het.oosten
As always afterwards everything is very logical :-) Never used caching before. -- 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 dja

Re: session and caching

2011-07-13 Thread Cal Leeming [Simplicity Media Ltd]
want to cache every > single user, but all user using the same layout) > > Then create a new middleware, that uses your both new created > CacheMiddlewares. See django.middleware.cache.py > > > > > > > > > > > > > > > > >reply to messa

Re: session and caching

2011-07-13 Thread het.oosten
> > > > > > > > >reply to message: > >date: 13.07.2011 08:08:31 > >from: "het.oosten" > >to: "Django users" > >subject: [] Re: session and caching > > >> Are you sure because in the docs I find the opposite. > >

RE: [] Re: session and caching

2011-07-13 Thread Henrik Genssen
created CacheMiddlewares. See django.middleware.cache.py >reply to message: >date: 13.07.2011 08:08:31 >from: "het.oosten" >to: "Django users" >subject: [] Re: session and caching > > > > >> Are you sure because in the docs I find the opposite.

Re: session and caching

2011-07-13 Thread het.oosten
> Are you sure because in the docs I find the opposite. > When I read it correct this is about caching the session. I was referring to (or trying to) caching the entire webpage using a custom session key for the lay-out (I use memcached) When I look at the request headers my custom session key,

Re: session and caching

2011-07-13 Thread Jonas Geiregat
> I have site with with a lay-out depending on a session, set in my > view. I first tried site-wide caching, and this obviously didn't work. > The caching is not session aware, and the lay-out changes almost > randomly. Are you sure because in the docs I find the opposite. https://docs.djangopr

session and caching

2011-07-13 Thread het.oosten
I have site with with a lay-out depending on a session, set in my view. I first tried site-wide caching, and this obviously didn't work. The caching is not session aware, and the lay-out changes almost randomly. Therefore I tried my luck with the @vary_on_headers decorator, using my session variab