+ if database.cachedRecently(cotop_url):
+ print >>sys.stderr, "loading cached query :%s" % cotop_url
+ cohash = database.dbLoad(cotop_url)
+ else:
+ cohash = cotop.coget(cotop_url)
+ if config.cache:
+ print >>sys.stderr, "saving query :%s" % cotop_url
+ database.dbDump(cotop_url, cohash)