search for: cache_xml

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

Did you mean: cache_all
2007 Jul 19
0
xml builder cache (with a slight problem on initial load)
...Needless to say, I have spent some time creating an XML 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 en...