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