I've written a simple package for caching pages I've fetched from the
web.  It works like a champ, and makes it so I don't have to hit a
server multiple times.

I'm wondering whether it's better to store the cached pages in my db
(I'm using mysql) or in the file system.  Either approach is
straightforward, but do people have experiences or even strongly held
beliefs as to which is better?

The moment you want to access those cached pages from another server, you'll want them in the database. Similarly, if you want to add any meta data.

But until then... I'd be inclined to just dump them to disk.

Just write your library so that the code doing the processing doesn't care where it is... then it will be easy to switch later.

--
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to