write_fragment

write_fragment(key, content, options = nil) Instance Public methods Writes content to the location signified by key (see expire_fragment for acceptable formats).

read_fragment

read_fragment(key, options = nil) Instance Public methods Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).

fragment_exist?

fragment_exist?(key, options = nil) Instance Public methods Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).

fragment_cache_key

fragment_cache_key(key) Instance Public methods Given a key (as described in expire_fragment), returns a key suitable for use in reading, writing, or expiring a cached fragment. All keys are prefixed with views/ and uses ActiveSupport::Cache.expand_cache_key for the expansion.

expire_fragment

expire_fragment(key, options = nil) Instance Public methods Removes fragments from the cache. key can take one of three forms: String - This would normally take the form of a path, like pages/45/notes. Hash - Treated as an implicit call to url_for, like { controller: 'pages', action: 'notes', id: 45} Regexp - Will remove any fragment that matches, so %r{pages/\d*/notes} might remove all notes. Make sure you don't use anchors in the regex (^ or $) because the actual filename ma

cache_store=

cache_store=(store) Instance Public methods

cache_store

cache_store() Instance Public methods

view_cache_dependency

view_cache_dependency(&dependency) Instance Public methods

response

response Instance Public methods Returns an ActionDispatch::Response that represents the current response.

request

request Instance Public methods Returns an ActionDispatch::Request instance that represents the current request.