module RefinerycmsVarnish module PagesControllerExtension # register after filter def self.included(c) c.after_filter :purge_all, :only => [:update_positions] end def purge_all Rails.logger.info "*** Purge all" # purge all pages purge "/", true end end end