Sporkmonger

purveyor of fabulously ambiguous eating utensils

Please Don't Waste Other People's Bandwidth

Posted by sporkmonger
Written May 28th, 2006

This is just a quick note to everyone out there who’s using FeedTools. If you don’t enable some sort of caching mechanism, you are inevitably wasting other people’s bandwidth, and by extension, their money. Please be courteous and enable caching. It’s not hard to do so, just run this prior to using any other FeedTools functionality:

1
2
3

require 'feed_tools'
FeedTools.configurations[:feed_cache] = "FeedTools::DatabaseFeedCache"

For Rails users, that line should go in environment.rb.

And you’ll need to either run the SQL table creation code in FeedTools’ db folder or if you’re a Rails user, you’ll need to use the supplied migration file (also in the db folder) and update your database.

If you need to, it is also possible to create your own caching mechanisms for use with FeedTools.

In any case, the point is, you should never, ever use FeedTools in a production capacity without first enabling a caching mechanism. It’s just impolite.

Tags:

Leave a Response

NOTE: I'm afraid Javascript needs to be on in order to comment.

Comments should be formatted using Textile.

Ruby code should be enclosed within a <macro:code lang="ruby"> element. Other languages are supported. For output you can simply omit the lang attribute.