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