app/controllers/admin/settings_controller.rb
#This method delete all page in cache
This method delete all page in cache
This method delete all page in cache
def delete_cache
    PageCache.sweep_all
    flash[:notice] = 'All cache is deleted'
    redirect_to :action => 'index'
  end
def delete_cache PageCache . sweep_all flash [ :notice ] = 'All cache is deleted' redirect_to :action => 'index' end
This method delete all page in cache
This method delete all page in cache