I have a model to store information about an RSS feed, which has the
method:

def refresh(self):
     dict = feedparser.parse(self.feed_url)
     # Do some processing


and a view:

def refresh_rss(request, rss_id):
      rss_feed = RSSFeed.objects.get(pk=rss_id)
      rss_feed.refresh()
      # Extra processing

When I run the refresh function off of the shell, it works fine
regardless of memcached.  Also, when I access the refresh_rss view
with memcached disabled, it works fine.  However, when I access the
refresh_rss view or run the refresh function with memcached enabled,
it doesn't work.  In particular, it seems that the feedparser.parse
function is not actually running.  There are no error messages or
anything, dict just ends up being None.  Anyone have any ideas why
this might be happening?  I've tried everything I could think of, and
am nearly certain that either feedparser.parse or memcached is to
blame.  My only thought was that since parse takes some time to run,
memcached or django might impose some sort of timeout that stops
execution of slow functions, but I couldn't find any documentation of
anything like this.  Thanks in advance for any help whatsoever.

GM
--~--~---------~--~----~------------~-------~--~----~
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