Sha256: e7a7b16f7488b4a6e4254ffee00cb7b092ca971437a2b417dcb55140970aef07

Contents?: true

Size: 314 Bytes

Versions: 61

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

module Admin
  class CachesController < ApplicationController
    def destroy
      Rails.logger.warn("[CACHE CLEAR] - Cleaning entire cache manually by #{current_admin} request")
      Rails.cache.clear
      redirect_back(fallback_location: admin_dashboard_path)
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
katalyst-koi-4.14.1 app/controllers/admin/caches_controller.rb
katalyst-koi-4.14.0 app/controllers/admin/caches_controller.rb
katalyst-koi-4.13.2 app/controllers/admin/caches_controller.rb
katalyst-koi-4.13.0 app/controllers/admin/caches_controller.rb
katalyst-koi-4.12.6 app/controllers/admin/caches_controller.rb
katalyst-koi-4.12.5 app/controllers/admin/caches_controller.rb
katalyst-koi-4.12.4 app/controllers/admin/caches_controller.rb
katalyst-koi-4.12.3 app/controllers/admin/caches_controller.rb
katalyst-koi-4.12.2 app/controllers/admin/caches_controller.rb
katalyst-koi-4.12.1 app/controllers/admin/caches_controller.rb
katalyst-koi-4.12.0 app/controllers/admin/caches_controller.rb
katalyst-koi-4.11.2 app/controllers/admin/caches_controller.rb
katalyst-koi-4.11.1 app/controllers/admin/caches_controller.rb
katalyst-koi-4.11.0 app/controllers/admin/caches_controller.rb
katalyst-koi-4.10.3 app/controllers/admin/caches_controller.rb
katalyst-koi-4.10.2 app/controllers/admin/caches_controller.rb
katalyst-koi-4.10.1 app/controllers/admin/caches_controller.rb
katalyst-koi-4.10.0 app/controllers/admin/caches_controller.rb
katalyst-koi-4.9.5 app/controllers/admin/caches_controller.rb
katalyst-koi-4.9.4 app/controllers/admin/caches_controller.rb