I want indeed cache all users using the same lay-out. I haven't considered writing my own middleware for this yet. I will look into it.
Thanks! Rob On 13 jul, 15:24, "Henrik Genssen" <henrik.gens...@miadi.net> wrote: > you can inherit the cache system (UpdateCacheMiddleware, > FetchFromCacheMiddleware) with your own get_Cache_Key function > that you extend by layout (as you hopefully do not 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 message: > >date: 13.07.2011 08:08:31 > >from: "het.oosten" <het.oos...@gmail.com> > >to: "Django users" <django-users@googlegroups.com> > >subject: [<django-users.googlegroups.com>] Re: session and caching > > >> 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, doesn't show > >up, therefore I doubt now if @vary_on_headers is the right option for > >me. > > >-- > >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+unsubscr...@googlegroups.com. > >For more options, visit this group > >athttp://groups.google.com/group/django-users?hl=en. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.