Use Memcache logic (not code is as follows) Def(get) MyIndex is None Try MyIndex from memcache return my index If myindex is none my index from datastore, add myindex to memcache, return my index
-----Original Message----- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of PF Sent: Thursday, May 19, 2011 1:45 PM To: Google App Engine Subject: [google-appengine] Generating static html files Hi! I set up the cron job and collecting data from internet. I'd like to display some statistics about the data. It's pretty enough to update the view once per day. >From my point of view the ideal implementation could be to re-generate the index.html file once per day. Definitely I do not want to run the GQL query for every http request. I also think it is wasting of memory to put the data into memcache for whole day. Is there any way, what is your suggestion? Thx, Peter -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.