From 7fb8c670474cf553a3540ac283d30dba02d9ea61 Mon Sep 17 00:00:00 2001 From: Drew Ulmer Date: Sun, 25 Nov 2012 22:10:44 -0600 Subject: 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 --- .../functional_caching/fragment_cached_without_digest.html.erb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 actionpack/test/fixtures/functional_caching/fragment_cached_without_digest.html.erb (limited to 'actionpack/test/fixtures/functional_caching') 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 @@ + +<%= cache 'nodigest', skip_digest: true do %>

ERB

<% end %> + -- cgit v1.2.3