Sha256: 7f955305a60c9dade05266e8de09eb2681446303f551b8825f61676bb847a077

Contents?: true

Size: 750 Bytes

Versions: 97

Compression:

Stored size: 750 Bytes

Contents

module ForestLiana
  class ScopesController < ForestLiana::ApplicationController
    def invalidate_scope_cache
      begin
        rendering_id = params[:renderingId]

        unless rendering_id
          FOREST_LOGGER.error 'Missing renderingId'
          return render serializer: nil, json: { status: 400 }, status: :bad_request
        end

        ForestLiana::ScopeManager.invalidate_scope_cache(rendering_id)
        return render serializer: nil, json: { status: 200 }, status: :ok
      rescue => error
        FOREST_REPORTER.report error
        FOREST_LOGGER.error "Error during scope cache invalidation: #{error.message}"
        render serializer: nil, json: {status: 500 }, status: :internal_server_error
      end
    end
  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
forest_liana-9.5.3 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.5.2 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.5.1 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.5.0 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.4.3 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.4.2 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.4.1 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.4.0 app/controllers/forest_liana/scopes_controller.rb
forest_liana-8.3.3 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.16 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.15 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.14 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.13 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.12 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.11 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.10 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.9 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.8 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.7 app/controllers/forest_liana/scopes_controller.rb
forest_liana-9.3.6 app/controllers/forest_liana/scopes_controller.rb