update scrapy cache path

This commit is contained in:
mhdzumair
2024-12-20 23:02:04 +05:30
parent 27e711ba51
commit fbe34d3d1e
+1 -1
View File
@@ -87,7 +87,7 @@ HTTPCACHE_ENABLED = True
HTTPCACHE_EXPIRATION_SECS = (
900 # 15 minutes to avoid a multiple scraping task of same time.
)
HTTPCACHE_DIR = "httpcache"
HTTPCACHE_DIR = "/tmp/httpcache"
HTTPCACHE_IGNORE_HTTP_CODES = [500, 502, 503, 504, 522, 524, 408, 429]
HTTPCACHE_STORAGE = "scrapy.extensions.httpcache.FilesystemCacheStorage"
# HTTPCACHE_POLICY = "scrapy.extensions.httpcache.RFC2616Policy"