1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 07:43:43 +00:00

Remove plural from stat key.

This commit is contained in:
Pedro Faustino 2012-12-28 11:06:04 +01:00
parent 93a1102189
commit 63d0b9f8c8

View File

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