Removing plural from httpcache stats' value names.

This commit is contained in:
Pedro Faustino 2012-12-24 00:24:27 +01:00
parent dabb064293
commit e396509f5b
1 changed files with 2 additions and 2 deletions

View File

@ -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)