Cache Eviction not Reflected in Monitoring

0

I've set up the following response mapping template to initiate cache eviction on a certain dynamic cache key. It seemingly works after some testing, but is not reflected in monitoring, making me think that I've wrote the template incorrectly. If anyone can help verify the template or direct me that would be great, I am quite lost.

$util.qr($ctx.result.put("__operation", "Mutation"))
#if( $ctx.error )
  $util.error($ctx.error.message, $ctx.error.type)
#else
  #set($cachingKeys = {})
  $util.qr($cachingKeys.put("context.arguments.school", $ctx.args.input.school))
  $extensions.evictFromApiCache("Query", "announcementsBySchool", $cachingKeys)

  $util.toJson($ctx.result)
#end

Absent cache evictions

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠