Sha256: 2d4cb031fadc22f3620e5dd01d6d614e2ec0a83cb6b209d0404f1b74ba4c2092

Contents?: true

Size: 325 Bytes

Versions: 4

Compression:

Stored size: 325 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-varnish-pages-0.0.3.rc1 lib/refinerycms-varnish-pages/pages_controller_extension.rb
refinerycms-varnish-pages-0.0.2.2 lib/refinerycms_varnish/pages_controller_extension.rb
refinerycms-varnish-pages-0.0.2.1 lib/refinerycms_varnish/pages_controller_extension.rb
refinerycms-varnish-pages-0.0.2 lib/refinerycms_varnish/pages_controller_extension.rb