Scrapy, a fast high-level web crawling & scraping framework for Python.
Removing plural from httpcache stats' value names.
Pedro Faustinoe396509f5b4a
diff --git a/scrapy/contrib/downloadermiddleware/httpcache.py b/scrapy/contrib/downloadermiddleware/httpcache.pyindex f0df8fbbd..cb12ac031 100644--- a/scrapy/contrib/downloadermiddleware/httpcache.py+++ b/scrapy/contrib/downloadermiddleware/httpcache.py@@ -45,10 +45,10 @@ class HttpCacheMiddleware(object):response = self.storage.retrieve_response(spider, request)if response and self.is_cacheable_response(response):response.flags.append('cached')- self.stats.inc_value('httpcache/hits', spider=spider)+ self.stats.inc_value('httpcache/hit', spider=spider)return response- self.stats.inc_value('httpcache/misses', spider=spider)+ self.stats.inc_value('httpcache/miss', spider=spider)if self.ignore_missing:raise IgnoreRequest("Ignored request not in cache: %s" % request)