I have created sitemap generation using acs common. I wanted to give the TTL for sitemap to caching.
Anyone idea how can we so it.
Hi @Sanjay_Bangar, you can try to use Dispatcher TTL functionality from ASC commons. You can find more detail under https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-ttl/index.html
@Sanjay_Bangarcould you please share more details. I mean what you are expecting to happen, and what is current state. Did you observed any errors/warning in dispatcher/apache logs? How your configuration of dispatcher TTL looks like for sitemap?
Hi @lukasz-m ,
I have added in dispatcher.any file /enable ttl and allw sitemap.xml .
Create one OSGI config in apps/config that acs common and added patterns content/guy.sitemap.xml
After changes in the publisher any page it is quickly reflected in the domain.sitemap.xml .
It should not displayed before the timeframe
Hi @Sanjay_Bangar, do you have your dispatcher flush agent on publish enabled? According to this docs https://helpx.adobe.com/experience-manager/kb/optimizing-the-dispatcher-cache.html#use-ttls dispatcher flush agent should be disabled on publish.
It is not working it is showing in the response header but sitemap.xml updated quickly before the time.
1.Added the configuration in acs common Max header.
2.page rename from the author and publish.
3.checked on dispatcher domain like www05-dev.numorous.org/sitemap.xml
But the page that I renamed it is reflected quickly.
The header looks fine.
There might be posiiblilty that the cached sitemap is deleted/invalidated from publish content.
You can check this in local by enabling the dispatcher debug logs.
Check .statfile for the cache invalidation status.