Message ID | 20110818142121.14459.40758.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'abrek/cache.py' --- abrek/cache.py 2011-06-28 12:51:57 +0000 +++ abrek/cache.py 2011-08-16 19:18:30 +0000 @@ -56,7 +56,11 @@ Like urlopen.open() but the content may be cached. """ # Do not cache local files, this is not what users would expect - if url.startswith("file://"): + + # workaround - not using cache at all. + # TODO: fix this and use the cache + # if url.startswith("file://"): + if True: stream = urllib2.urlopen(url) else: key = self._key_for_url(url)