Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Distribution Request type

Avatar

Level 2

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/conten...

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/dist...

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @omkar20xx1 

 

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hello @omkar20xx1 

 

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

Avatar

Level 2

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