Distribution Request type | Community
Skip to main content
Level 2
November 21, 2023
Solved

Distribution Request type

  • November 21, 2023
  • 1 reply
  • 873 views

I am trying to invalidate dispatcher cache from author via SCD request as mentioned in this URL.

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/content-delivery/caching.html#sling-distribution

When I try this code. I am unable to find enum

DistributionRequestType.INVALIDATE

I tried going over the Javadoc of the same but could not find any similar reference. Does anyone know of any alternative or any other method of clearing dispatcher cache from author

Javadoc - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/org/apache/sling/distribution/DistributionRequestType.html

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

Hello @omkarmanasba 

 

I am readily able to use it with AEMaaCS SDK (Nov-23 release)

import org.apache.sling.distribution.DistributionRequestType;

 

String.valueOf(DistributionRequestType.INVALIDATE);

 

 

1 reply

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
November 22, 2023

Hello @omkarmanasba 

 

I am readily able to use it with AEMaaCS SDK (Nov-23 release)

import org.apache.sling.distribution.DistributionRequestType;

 

String.valueOf(DistributionRequestType.INVALIDATE);

 

 

Aanchal Sikka
Level 2
November 23, 2023

Yes, I can see it now. I was using a different SDK version. Which caused the issue. Once i updated it. It was fine.