I am using mongrel to serve static as well as dynamic pages. The static page''s controller contains the following line of code: after_filter {|c| c.cache_page} This code caches that page as a static html page that does not have to be rendered form multiple files (the view and layout). I got the idea to do this form the rails recipes book. It definitely cached the pages. Wen I make changes now, I do not get an updated page. I have commented out the after_filter form above and I am still having the same issue. I checked the tmp/cache directory and there are no files there. I have stopped and restarted mongrel and my machine. None of these actions have resulted in an updated page displaying. Does anyone know how to delete mongrel''s cache or another way to resolve this situation? Thank you in advance! -- Jason Harrelson cjharrelson at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060710/94e9b949/attachment-0001.html
Subject: [Mongrel] Mongrel caching From: Jason Harrelson> > I am using mongrel to serve static as well as dynamic pages. > > The static page''s controller contains the following line of code: > after_filter {|c| c.cache_page}Look in $RAILS_ROOT/public, that is where the files are being cached, (for page caching) , I think.
On Mon, 2006-07-10 at 11:19 -0500, paul.vudmaska at gmail.com wrote:> Subject: [Mongrel] Mongrel caching > From: Jason Harrelson > > > > I am using mongrel to serve static as well as dynamic pages. > > > > The static page''s controller contains the following line of code: > > after_filter {|c| c.cache_page} > > Look in $RAILS_ROOT/public, that is where the files are being cached, > (for page caching) , I think.And you have to run your application in production mode: mongrel_rails start -e production -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?