cache_debugging 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cache_debugging/version.rb +2 -2
- data/lib/cache_debugging/view_sampling.rb +3 -2
- 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: 5fc7aa4aa487a16f4a041e8e7f60a5ddd971e508
|
4
|
+
data.tar.gz: 168aa60d34fd991944d719f09b00c596f23852b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b25f9e8ae1564dfa70339d9526ed7448b310fb4bff66e3835193e96524c3a3f8dfdd23f24e3febced35c9256f29f3a1f010ec5a0517f41db1ebdf418acba93f
|
7
|
+
data.tar.gz: c19e1c26e3c3fe110f58183524bd92c0bf674ed66a2efd23bb71f7847321270be8f79e3b2fdcbbd73d6ae047aa1b05048c3f583757fc0b99145a445dad1256aa
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module CacheDebugging
|
2
|
-
VERSION = "0.1.
|
3
|
-
end
|
2
|
+
VERSION = "0.1.1"
|
3
|
+
end
|
@@ -45,8 +45,9 @@ module CacheDebugging
|
|
45
45
|
|
46
46
|
# clear forcing of view sampling if it's been initiated
|
47
47
|
def cache_with_view_sampling(name = {}, options = nil, &block)
|
48
|
-
cache_without_view_sampling(name, options, &block)
|
49
|
-
|
48
|
+
cache_without_view_sampling(name, options, &block).tap do
|
49
|
+
CacheDebugging::ViewSampling.force_sampling = false if cache_depth == 0
|
50
|
+
end
|
50
51
|
end
|
51
52
|
|
52
53
|
private
|