method
write_fragment
v1.1.6 -
Show latest stable
- Class:
ActionController::Caching::Fragments
write_fragment(name, content, options = nil)public
No documentation available.
# File actionpack/lib/action_controller/caching.rb, line 287
def write_fragment(name, content, options = nil)
return unless perform_caching
key = fragment_cache_key(name)
self.class.benchmark "Cached fragment: #{key}" do
fragment_cache_store.write(key, content, options)
end
content
end