== Warning! Be sure to look at lib/sweeper.rb. This works by deleting everything in the public directory that is not one of the protected entries. Basically, just you add the following to your model: class Fact < ActiveRecord::Base acts_as_cache_clearer end This adds an after_save and after_destroy that will clear everything in the public directory that is not in the array of protected files and directories. The list of protected entries that will not be deleted is: .svn .htaccess 404.html 500.html dispatch.cgi dispatch.fcgi dispatch.rb favicon.ico images javascripts robots.txt stylesheets system If you have any other files or folders in the public/ directory that you do not want to be deleted when the cached pages are swept, be sure to add it to the list in sweeper.rb. == About This may or may not be useful to anyone else, but I'll put it out there anyway. It's handy for brochure type websites that have a few dynamic areas. You can simply page cache the entire site and then add acts_as_cache_clearer to all your models. Then, anytime any of those model's records are saved or destroyed, the entire page cache in the public directory is wiped out. It's currently being used on each page of http://forum.nd.edu/ with the exception of the home page. == Future I plan on making this reference based in the future. Basically, you will be able to say caches_action :index, :references => :posts, :comments or something like this. Then, if you modify a post record, it would only delete the pages which have references to a post in them. For now this works for me and I don't need the referenced checks. Also, I need to add in documentation and some tests. I know it's working as I am currently using it on a production site, but it would be nice to have some tests going too.