Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tocomment
· 14y ago · 0 comments
What do you recommend if all of my pages require a user to be logged in, and the pages each have user specific stuff on each page's header, e.g., a my account link, an icon showing the number of items in your cart, etc.
Comments
[–]
jnhasty
14y ago
Server side includes might be a simple solution for this:
http://joshuajonah.ca/blog/2010/06/18/poor-mans-esi-nginx-ss...
[–]
sunsu
14y ago
It depends on your DB schema, but I would recommend taking a look at Johnny-Cache, or django-cache-machine for queryset object caching.