module ActionController::Caching::Pages
def expire_page(options = {})
Expires the page that was cached with the +options+ as a key. Example:
def expire_page(options = {}) return unless self.class.perform_caching if options.is_a?(Hash) if options[:action].is_a?(Array) options[:action].dup.each do |action| self.class.expire_page(url_for(options.merge(:only_path => true, :action => action))) end else self.class.expire_page(url_for(options.merge(:only_path => true))) end else self.class.expire_page(options) end end