cache_debugging 0.0.1 → 0.1.0
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/railtie.rb +6 -6
- data/lib/cache_debugging/version.rb +1 -1
- 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: b6f1d6cd5b9d295bbb09481343e61a41c3179493
|
4
|
+
data.tar.gz: b113ac5ae559bf44e02472190cca54cc8c02761a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76bfd3b1c5419d0c77bdf0db5524b883248ef6c48898188b2f02d20550c5b2dccaa6893b0a354ef661c0c5c843348a867cf543453016ebe700a82f2592eaadf5
|
7
|
+
data.tar.gz: 25e759f6223135c33462b6a0c11f11020e93ff5748fdd8b6ddd0bdcc8987dbf0ebc4aaae6027ea2124847ac3c316b4e28baf5f611466f2bf4102c2c5bbe24594
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module CacheDebugging
|
2
2
|
class Railtie < Rails::Railtie
|
3
|
-
config.cache_debugging = ActiveSupport::OrderedOptions.new
|
4
|
-
# raise exceptions if templates aren't in the dependency tree
|
5
|
-
strict_dependencies: false,
|
3
|
+
config.cache_debugging = ActiveSupport::OrderedOptions.new
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
# raise exceptions if templates aren't in the dependency tree
|
6
|
+
config.cache_debugging.strict_dependencies = false
|
7
|
+
|
8
|
+
# [0,1] - decimal (percent) of cache hits to check
|
9
|
+
config.cache_debugging.view_sampling = 0
|
10
10
|
|
11
11
|
initializer "cache_debugging.setup", :before => 'cache_digests' do |app|
|
12
12
|
ActiveSupport.on_load(:action_view) do
|