mirror of https://github.com/scrapy/scrapy.git
Removing plural from httpcache stats' value names.
This commit is contained in:
parent
dabb064293
commit
e396509f5b
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue