rack-cache 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +4 -0
- data/lib/rack/cache/context.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caafc3db00d7eb7bbbecad87bd98f48da57836c0
|
4
|
+
data.tar.gz: c565b38cc44f573c71e8a1f2af12db1c72663ce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133d4a9464c350865274066aadf478368c1fe18b07a46e12edbc19a18c9fb8df5f4591f943f9ffe75337f14061c651a1fa27f0a99846d2d4e88a1570f4a60e0d
|
7
|
+
data.tar.gz: cf9a2710c7c16b3745ae37ca2000a84852a7ee7a328f548b7fa26398478b9acd007873d4d98005a51e983c849b4604a82d9a87204633fcadbdc6b32df5aee5a3
|
data/CHANGES
CHANGED
data/lib/rack/cache/context.rb
CHANGED
@@ -151,7 +151,7 @@ module Rack::Cache
|
|
151
151
|
# See RFC2616 13.10
|
152
152
|
def invalidate
|
153
153
|
metastore.invalidate(@request, entitystore)
|
154
|
-
rescue
|
154
|
+
rescue => e
|
155
155
|
log_error(e)
|
156
156
|
pass
|
157
157
|
else
|
@@ -171,7 +171,7 @@ module Rack::Cache
|
|
171
171
|
else
|
172
172
|
begin
|
173
173
|
entry = metastore.lookup(@request, entitystore)
|
174
|
-
rescue
|
174
|
+
rescue => e
|
175
175
|
log_error(e)
|
176
176
|
return pass
|
177
177
|
end
|
@@ -270,7 +270,7 @@ module Rack::Cache
|
|
270
270
|
strip_ignore_headers(response)
|
271
271
|
metastore.store(@request, response, entitystore)
|
272
272
|
response.headers['Age'] = response.age.to_s
|
273
|
-
rescue
|
273
|
+
rescue => e
|
274
274
|
log_error(e)
|
275
275
|
nil
|
276
276
|
else
|