Sha256: 255d69c3369be6879d0d5e200166ba5ea0df03d59c9626366292f2cb9d616cda

Contents?: true

Size: 713 Bytes

Versions: 10

Compression:

Stored size: 713 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_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

10 entries across 10 versions & 1 rubygems

Version Path
forest_liana-7.3.0 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.2.2 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.2.1 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.2.0 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.1.0 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.0.2 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.0.1 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.0.0 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.0.0.beta.6 app/controllers/forest_liana/scopes_controller.rb
forest_liana-7.0.0.beta.5 app/controllers/forest_liana/scopes_controller.rb