tagged-cache 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 1.1.1 2010-11-10
2
+
3
+ * Adjust expiring offset with invalid tags (:race_condition_ttl option doesn't work if (Time.now - expires_at) > race_condition_ttl).
4
+
1
5
  === 1.1.0 2010-11-02
2
6
 
3
7
  * TaggedCache supports ActionController#caches_action now.
@@ -1,4 +1,4 @@
1
- require "active_support/core_ext/integer/time"
1
+ require "active_support/time"
2
2
  require "active_support/core_ext/hash/except"
3
3
 
4
4
  module ActiveSupport
@@ -142,7 +142,7 @@ module ActiveSupport
142
142
  if entry.respond_to?(:depends) && entry.depends && !entry.depends.empty?
143
143
  tags = read_tags(*entry.depends.keys)
144
144
  valid = entry.depends.all? { |k, v| tags[k] == v }
145
- entry.expires_at = (entry.created_at - 1.year) unless valid
145
+ entry.expires_at = 1.second.ago unless valid
146
146
  end
147
147
  entry
148
148
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagged-cache
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anton Ageev
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-02 00:00:00 +03:00
18
+ date: 2010-11-10 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency