Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

fix for the replays and cache timeout

samus_380a65e72104
diff --git a/scrapy/trunk/scrapy/replay/__init__.py b/scrapy/trunk/scrapy/replay/__init__.py
index 952bae826..f4d7ca332 100644
--- a/scrapy/trunk/scrapy/replay/__init__.py
+++ b/scrapy/trunk/scrapy/replay/__init__.py
@@ -48,6 +48,7 @@ class Replay(object):
self._load(repfile, usedir)
settings.overrides['CACHE2_DIR'] = self.cache2dir
+ settings.overrides['CACHE2_EXPIRATION_SECS'] = -1
settings.overrides['CACHE2_IGNORE_MISSING'] = self.playing or self.updating
settings.overrides['CACHE2_SECTORIZE'] = False