require 'refinerycms-base' require 'refinerycms-pages' require 'shellac' class Railtie < Rails::Railtie # Enable caching on refinerycms-pages config.after_initialize do Admin::PagesController.class_eval do cache_sweeper :page_sweeper, :only => [:create, :update, :destroy] end end end