Flush dispatcher cache programmatically in AEM as cloud Service | Adobe Higher Education
Skip to main content
Dieses Thema wurde für Antworten geschlossen.

1 Antwort

arunpatidar
Community Advisor
Community Advisor
July 30, 2022
July 31, 2022

Thanks @arunpatidar for sharing this links. I felt using ACS Common flush configuration easy in this scenario. Can we used this for AEM as cloud as well?

I also read about 

com.adobe.cq.social.ugcbase.dispatcher.api.FlushService

Here is the method to flush cache. Here should I create a new user who has access to replicate and pass as userid? Please let me know if you have any information on this.

flushService.sendFlushUrl("userid",
FlushService.FlushType.IMMEDIATE_FLUSH, resourceUrl,
FlushService.RefetchType.IMMEDIATE_REFETCH,
new String[] { resourceUrl });

 

arunpatidar
Community Advisor
Community Advisor
July 31, 2022

Hi,

I think you can use it, If it was deprecated in AEMaaCS, the document must have mentioned that.

I am not sure about using , because this is related to AEM Community sites

com.adobe.cq.social.ugcbase.dispatcher.api.FlushService

 If you want, you can create your own service which ideally contains flush post requests or use make a flush call by using existing flush agent in your code.

Arun Patidar