search for: cache_xml_frag

Displaying 1 result from an estimated 1 matches for "cache_xml_frag".

2007 Jul 19
0
xml builder cache (with a slight problem on initial load)
...fragment cache for rxml files. A slight problem with it though. Let me present the code. It is derived directly from the cache and cache_erb_fragment routines. <code>module ActionView module Helpers module CacheHelper def cache_xml(xml, name ={}, &block) @controller.cache_xml_fragment(block, xml, name) end end end end module ActionController module Caching module Fragments def cache_xml_fragment(block, xml, name = {}, options = nil) unless perform_caching then block.call; return end if cache = read_fragment(name, options) xm...