aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/fixtures
diff options
context:
space:
mode:
authorDrew Ulmer <latortuga@gmail.com>2012-11-25 22:10:44 -0600
committerDrew Ulmer <latortuga@gmail.com>2012-11-25 22:10:44 -0600
commit7fb8c670474cf553a3540ac283d30dba02d9ea61 (patch)
tree98daef3dacbcd1ff83e12f0797c0a75d99bdb6b1 /actionpack/test/fixtures
parent0a7ba19dcc2271ad6183041ca79e8766a0d2bc40 (diff)
downloadrails-7fb8c670474cf553a3540ac283d30dba02d9ea61.tar.gz
rails-7fb8c670474cf553a3540ac283d30dba02d9ea61.tar.bz2
rails-7fb8c670474cf553a3540ac283d30dba02d9ea61.zip
Add explicit opt-out for fragment cache digesting
This add support for sending an explicit opt-out of the "Russian-doll" cache digest feature on a case-by-case basis. This is useful when cache- expiration needs to be performed manually and it would be otherwise difficult to know the exact name of a digested cache key. More information: https://github.com/rails/cache_digests/pull/16
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r--actionpack/test/fixtures/functional_caching/fragment_cached_without_digest.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/fixtures/functional_caching/fragment_cached_without_digest.html.erb b/actionpack/test/fixtures/functional_caching/fragment_cached_without_digest.html.erb
new file mode 100644
index 0000000000..3125583a28
--- /dev/null
+++ b/actionpack/test/fixtures/functional_caching/fragment_cached_without_digest.html.erb
@@ -0,0 +1,3 @@
+<body>
+<%= cache 'nodigest', skip_digest: true do %><p>ERB</p><% end %>
+</body>