lib/rack/cache/context.rb in rack-cache-1.4.3 vs lib/rack/cache/context.rb in rack-cache-1.5.0

- old
+ new

@@ -149,11 +149,11 @@ # Invalidate POST, PUT, DELETE and all methods not understood by this cache # See RFC2616 13.10 def invalidate metastore.invalidate(@request, entitystore) - rescue Exception => e + rescue => e log_error(e) pass else record :invalidate pass @@ -169,11 +169,11 @@ record :reload fetch else begin entry = metastore.lookup(@request, entitystore) - rescue Exception => e + rescue => e log_error(e) return pass end if entry if fresh_enough?(entry) @@ -268,10 +268,10 @@ # Write the response to the cache. def store(response) strip_ignore_headers(response) metastore.store(@request, response, entitystore) response.headers['Age'] = response.age.to_s - rescue Exception => e + rescue => e log_error(e) nil else record :store end