rack-cache 1.7.2 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2deaf65188206af126faafb3511a00fa1eebf7b2cde64dd638045bd84b391c5b
4
- data.tar.gz: 8ef7e0dcbb043c049b3f0d27237c8e31b647f6d84e71669d86fd21dd0a138e60
3
+ metadata.gz: a52edf08cd4dca09954d3269805b240539a240f89df89e2bdda063077a4f826f
4
+ data.tar.gz: 3474fecb6a64d70e47531d5c9978673cf0c67a5d276aa7ccb35d5368d9be0960
5
5
  SHA512:
6
- metadata.gz: fd11ceb389f99d43df656f9cd4a8dd68635b1d2ed097decd0985290c2d7f02c5aed4d164a84be1edf86eccdc6398acc10c6e259e7d81447ef7d1e0ff1c50d71a
7
- data.tar.gz: 80ba759bd38fc3a6e9fa5047a5a1297643ce4b10019c7e536df1b1776aa6fd13d83c28399eefc4782d69a118fb867dba7b2598087241d7313def24b42fc0ba84
6
+ metadata.gz: 3e83d8956c8c5e25a8c4f0109e50a39f7175b46edda89e41b9d62939779439c0880b7f17fcd9aae63c47e2a4715ce7ea0678d7231135f009cffbe6b588c772af
7
+ data.tar.gz: 4351bd9ae5eb974590e8d39b8328a083a9bd2be4456d6966e2d0c12b35d3c28a7c367b8335296827e6490c3513cffc5b2b45b9231ec45b93f541ed61a9676c57
data/CHANGES CHANGED
@@ -1,6 +1,10 @@
1
+ ## next
2
+
3
+ * Meta stores will purge keys when no entity store entries are found
4
+
1
5
  ## 1.7.2
2
6
 
3
- * fix key generation for requests with no query strings
7
+ * Fix key generation for requests with no query strings
4
8
 
5
9
  ## 1.7.0
6
10
 
@@ -41,9 +41,9 @@ module Rack::Cache
41
41
  if body = entity_store.open(res['X-Content-Digest'])
42
42
  restore_response(res, body)
43
43
  else
44
- # TODO the metastore referenced an entity that doesn't exist in
45
- # the entitystore. we definitely want to return nil but we should
46
- # also purge the entry from the meta-store when this is detected.
44
+ # the metastore referenced an entity that doesn't exist in
45
+ # the entitystore, purge the entry from the meta-store
46
+ purge(key)
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-09 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack