Skip to content

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

Remove plural from stat key.

Pedro Faustino63d0b9f8c8c0
diff --git a/scrapy/contrib/downloadermiddleware/httpcache.py b/scrapy/contrib/downloadermiddleware/httpcache.py
index a5b7e5f05..5608ec2b9 100644
--- a/scrapy/contrib/downloadermiddleware/httpcache.py
+++ b/scrapy/contrib/downloadermiddleware/httpcache.py
@@ -81,7 +81,7 @@ class HttpCacheMiddleware(object):
self.stats.inc_value('httpcache/store', spider=spider)
else:
response.flags.append('cached')
- self.stats.inc_value('httpcache/hits', spider=spider)
+ self.stats.inc_value('httpcache/hit', spider=spider)
return response
def is_cacheable_response(self, response):