I would LOVE to use caching for both anonymous and logged in users, but
the problem is that every page on our site (http://www.splicemusic.com)
has the typical "hello username | log out | ..." at the top of each page.
Now, how can I possibly cache both anonymous and logged in users easily?
I'm guessing that I would need to add @vary_on_cookie before for each
and every view?
- bram
If the username is the only thing you could store the username in a
cookie and have Javascript write it out. Then the page is completly
cacheable.
--
Nic Ferrier
http://www.tapsellferrier.co.uk
You might consider using finer-grained caching, so that you only cache
the things that are actually expensive to generate (e.g., complex
database lookups).
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."