From: Mike Dalessio Date: 2010-09-11T02:00:05+09:00 Subject: Re: Mechanize Cache problem --000feaeec98a19a1f0048feaa7f6 Content-Type: text/plain; charset=ISO-8859-1 Hi, On Fri, Sep 10, 2010 at 12:38 PM, Cameron Vessey wrote: > Hi > ok hears the deal, I'm building a program that notify's you when theres > a new entry on a webpage. Problem is my mechanize results seems to be > about 10 minutes behind! > > Mechanize is not returning the most current state of the website. Now > eventually it will show the changes, but even then it's still way > behind. So is this a cacheing problem? Does any one know of a " > agent.clear" method or something so that I can clear Mechanizes cache > every time? > Mechanize instances do cache pages you've visited, but you can clear that with agent.history.clear; or prevent history from being saved by setting agent.history.max_size = 0. Or, you can use a new Mechanize instance altogether. In the future, you may want to send Mechanize-specific questions to the Mechanize mailing list: http://rubyforge.org/mailman/listinfo/mechanize-users Cheers, -m ---- mike dalessio / mike.dalessio@gmail.com / http://mike.daless.io/ / @flavorjones --000feaeec98a19a1f0048feaa7f6--