cached_counts 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,9 @@ module CachedCounts
19
19
  private
20
20
 
21
21
  def cached_count
22
- Rails.cache.fetch(current_key)
22
+ if all_keys.include?(current_key)
23
+ Rails.cache.fetch(current_key)
24
+ end
23
25
  end
24
26
 
25
27
  def uncached_count(*args)
@@ -1,3 +1,3 @@
1
1
  module CachedCounts
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cached_counts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: