search for: write_fragment

Displaying 4 results from an estimated 4 matches for "write_fragment".

2007 May 29
4
cache everything but...
I saw this older post when searching for information: On Feb 16, 5:10 pm, Ingo Weiss <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > withfragmentcachingonecancacheparts of a page. However, more often > than not what I would need is the exact opposite approach. I would like > to be able to use action cashing and have a mechanism for telling Rails > to
2006 Nov 05
0
Any workaround for Rails caching?
..., name = {}, options = nil) unless perform_caching then block.call; return end buffer = eval("_erbout", block.binding) if cache = read_fragment(name, options) buffer.concat(cache) else pos = buffer.length block.call write_fragment(name, buffer[pos..-1], options) end end It seems like Markaby might have to have a "length" attribute and/or act like "buffer"? Or would Rails need to be changed on the eval line? Joe __________________________________________________ Do You Yahoo!? Tired of spa...
2006 Jan 27
1
Caching from screen scraping
Hi all, I need to do some screen scraping from my rails app. Given an ethernet (MAC) adress, I scrape results from an internal web page that returns location and hostname. How can I cache the result from that screen scraping as to be polite to the scrapee? I would like to expire the results daily. In perl, I would use Cache::File. Can I use rails caching for this? What''s the best
2007 Jul 19
0
xml builder cache (with a slight problem on initial load)
...unless perform_caching then block.call; return end if cache = read_fragment(name, options) xml << cache else buffer = '''' xml_builder = Builder::XmlMarkup.new(:target=>buffer) block.call(xml_builder) write_fragment(name,buffer, options) xml << buffer end end end end end</code> To use the cache_xml you pass the current xml object and the ''name'' of the fragment. This is a simplified example (w/o the dynamic loading of data) but the problem that occurs...