Short question: what caching packages are available for Rails?

Details: My application requires data scraped from various web sites.
To date, I've used scripts to fetch the page in question.  Since I never
want to hit a web site twice with the same query, I always save the raw
HTML so I can parse it later (e.g. if I need to rebuild my database).  I
then parse the stored HTML and load the results into ActiveRecords:

Web Site => [mechanize] => stored HTML => [parse and save!] =>
ActiveRecord

I'd like to automate this so if MyActiveRecord.find() doesn't turn up
anything, it will first look for stored HTML, and if it can't find any
stored HTML will trigger a fetch from the web site.

Before I write this from scratch, I should ask: are there any caching
packages for Rails that do some or all of this?

TIA.

- ff
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to