Hi Team
We have lot of pages and labels right now with us with the cache settings of -
We want to update the settings to below -
Shared cache across users, Cache expires after 600 seconds, and Ignore access control in caches.
We have more than 1000 labels and pages together. Is there any way we can automate this task without manual intervention using XMLAccess or using some HCL DX Portal SDK?
Right now, the only option we have is to either export pages and labels using xmlaccess, modify them and import it or using Portal's Administration UI to update it which is time consuming and inefficient.
Hi Mohammad,
it looks like for me that you can use the WCM-API to automate such changes. I assume you mean labels for pages and/or Links that contain labels. When you take a look for example to URL:
https://opensource.hcltechsw.com/experience-api-documentation/wcm-api/#tag/Content/paths/~1content-templates~1{content_template_id}/put
and you expand the "links" section you will see that labels will be returned for content templates.
Maybe try to do further searches in that WCM-API Explorer to find all other kind of Portal Resources for which you need to update these "links" and "labels". There should be options to retrieve the information and to update those.
I hope that helps
Thanks, Thorsten
Thanks for the reply @Thorsten Reinheimer , but I want to update cache settings not the links or labels. I want to update Cache Settings for All labels and Pages.
Hi @Mohammad Ashfaq Memon ,
We would recommend to create a new case as this feature needs a further research.
Thank you!