Probably your instance doesn't live long enough, or your RSS is too big, or you aren't escaping the XML for the data type you are using.
Oh, and memcache, never going to live for a full hour. Not what it is for. I give it 25 minutes tops. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ayan Sent: Saturday, December 10, 2011 11:43 PM To: Google App Engine Subject: [google-appengine] Memcache problem with Python feedparser !! Dear Friends, I am using Python Feedparser (http://code.google.com/p/feedparser/) to read some RSS feed for my application. I want to Cache the RSS feed for 1 hour. No need to do the UrlFetch every single time. For that, I wrote this CODE - -------------------------------------------------------- def get_data(NewsID): data=memcache.get(NewsID) if not data: data=feedparser.parse('http://mysite.com/feeds/'+NewsID+'/') if not data: memcache.add(NewsID, data, 3600) return data -------------------------------------------------------- The format of NewID is: ABC1234567890 string format PROBLEM: It seems, it is not Caching at all !! Can you please tell me whats wrong ??? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
