diff --git a/scrapy/extensions/httpcache.py b/scrapy/extensions/httpcache.py index f31cb3278..c2a2afb8d 100644 --- a/scrapy/extensions/httpcache.py +++ b/scrapy/extensions/httpcache.py @@ -281,7 +281,7 @@ class FilesystemCacheStorage(object): metapath = os.path.join(rpath, 'pickled_meta') if not os.path.exists(metapath): return # not found - mtime = os.stat(rpath).st_mtime + mtime = os.stat(metapath).st_mtime if 0 < self.expiration_secs < time() - mtime: return # expired with self._open(metapath, 'rb') as f: