Monday, August 1, 2011

Proxy Cache and Dynamic Content

I've been adding memcached base caching of page fragments so that when
a logged in user sees, "hello sammy" up at the top of the page, that
the rest of the page still loads quickly.

I've wanted to try to leverage proxy caching to enable better
international access (and save server load), but it seems that this
can't be done with vanilla session management.

It seems to me that using javascript to check for a cookie and then
polling the server for the correct session information (likely for the
duration of a quick portal view this amounts to nothing more than
"hello sammy" type content) is a good way to leverage proxy caching.

User sees page ->
JScript finds cookie ->
Poll server ->
While user is reading the page, slide in "hello sammy" and set a
cookie to contain this trifling data.

Should I just set a page cookie with the trifling data and then use
jscript to either load the data or poll the server?

Am I thinking about this correctly and is anyone already doing it or
has an idea about how to do it alongside django's session management?

Peace

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment