ngmoco-cache-money 0.2.15 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/rails/init.rb +6 -1
  2. metadata +3 -3
data/rails/init.rb CHANGED
@@ -31,7 +31,12 @@ else
31
31
  $cache = Cash::Transactional.new($local, $lock)
32
32
 
33
33
  # allow setting up caching on a per-model basis
34
- unless memcache_config[:automatic_caching].to_s == 'false'
34
+ if memcache_config[:automatic_caching].to_s == 'false'
35
+ Rails.logger.info "cache-money: global model caching disabled"
36
+ class ActiveRecord::Base
37
+ is_cached(false)
38
+ end
39
+ else
35
40
  Rails.logger.info "cache-money: global model caching enabled"
36
41
  class ActiveRecord::Base
37
42
  is_cached(:repository => $cache)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ngmoco-cache-money
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 15
10
- version: 0.2.15
9
+ - 16
10
+ version: 0.2.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nick Kallen