This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
rails--rails
Watch
1
Star
0
Fork
You've already forked rails--rails
0
mirror of
https://github.com/rails/rails.git
synced
2022-11-09 12:12:34 -05:00
Code
Releases
Activity
487ff1330c
rails--rails
/
actionpack
/
test
/
fixtures
/
functional_caching
/
fragment_cached_with_options.html.erb
4 lines
100 B
Text
Raw
Normal View
History
Unescape
Escape
restore ability to pass extra options to cache stores The `cache` helper methods should pass any extra options to the cache store. For example :expires_in would be a valid option if memcache was the cache store. The change in commit da16745 broke the ability to pass any options other than :skip_digest and :virtual_path. This PR restores that functionality and adds a test for it.
2015-12-27 01:25:27 -05:00
<body>
Properly verify that cache accepts and user `expires` value.
2016-04-17 13:36:26 -04:00
<%= cache 'with_options', skip_digest: true, expires_in: 10 do %><p>ERB</p><% end %>
restore ability to pass extra options to cache stores The `cache` helper methods should pass any extra options to the cache store. For example :expires_in would be a valid option if memcache was the cache store. The change in commit da16745 broke the ability to pass any options other than :skip_digest and :virtual_path. This PR restores that functionality and adds a test for it.
2015-12-27 01:25:27 -05:00
</body>
Copy permalink