Hi,

aplogies if this is a FAQ/recently discussed - I tried a quick search
but didn't find anything - hit me with a URL if there is one.

My question - does Django cache work across scripts? The problem I
have is: my page needs to show some data that is timewise expensive to
generate. If I do it in runtime, then if there is a cache hit then its
OK, but if there's a cache miss then the page fails to load or takes
too long. Rather than generating the data in runtime (ideally I would
do this but I need to really really optimize the frontend), I thought
that a simple solution would be to have a cron script do the expensive
work, import the Django core/cache modules and just store the data in
the Django cache from the "generator" script using the Django cache
API, from where the web side of things can pick it up? 1) will it work
(of course I'll also try out myself, but I thought I'd consult a bit
first) and 2) is it a nice/"right" way of doing things? maybe I should
look at some other architectural way of doing this, or is this OK? I
see no reason why it shouldn't work as long as the backend generator
and the frontend displayer use the same configuration and cache object
keys.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to