My users have a lot of information provided as json by django when
they log on my application. Instead of computing this json each time
someone logs in, i would like to cache it. I think about having it as
a string that I would simply copy to the response object.

However, some actions must make update this string as they modify
information it contains. But I don't want to update it if a lot of
user actions are done in a too little time. Typically, i'd like to
have a kind of timer. If another action is done within N seconds, it
will cancel the timer and restart it. When the timer timeout, the
update of the cached data must be done.

Is there a native system providing this kind of feature? Should I code
my own timer/thread managing code to do this?

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.


Reply via email to