# File lib/action_controller/caching/fragments.rb, line 38 def write_fragment(key, content, options = nil) return content unless cache_configured? key = fragment_cache_key(key) instrument_fragment_cache :write_fragment, key do content = content.html_safe.to_str if content.respond_to?(:html_safe) cache_store.write(key, content, options) end content end