Sha256: 9d798d889393469e6c3077cbfd900fed1f7065222b9aa5711f63284ea119eec0

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

class Admin::CacheController < Admin::BaseController

  def sweep
    PageCache.sweep_all
    expire_fragment(/.*/)

    flash[:notice] = _('Cache was cleared')
    redirect_to :controller => '/admin/settings'
  end

  def sweep_html
    PageCache.sweep_all
    expire_fragment(/^contents_html.*/)

    flash[:notice] = _('HTML was cleared')
    redirect_to :controller => '/admin/settings'
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typo-5.0.3.98.1 app/controllers/admin/cache_controller.rb
typo-5.0.3.98 app/controllers/admin/cache_controller.rb
typo-5.1.1 app/controllers/admin/cache_controller.rb
typo-5.1.2 app/controllers/admin/cache_controller.rb
typo-5.1.3 app/controllers/admin/cache_controller.rb
typo-5.1 app/controllers/admin/cache_controller.rb