Addicted To Caching plugin
Plugin details
Documentation
ruby script/plugin install http://svn.addictedtonew.com/public/plugins/addicted_to_caching/
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.
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | Back in time (2 older versions) | Last edited by: scott, 7 months ago

