TTL for sitemap.xml | Community
Skip to main content
Sanjay_Bangar
Community Advisor
Community Advisor
December 1, 2021

TTL for sitemap.xml

  • December 1, 2021
  • 2 replies
  • 2925 views

Hi All,

         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.

 

Kr,

Sanjay

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

lukasz-m
Community Advisor
Community Advisor
December 1, 2021

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_Bangar
Community Advisor
Community Advisor
December 2, 2021

I tried Same alredy but it is not working.

Sanjay_Bangar
Community Advisor
Community Advisor
December 2, 2021

@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

Expiration time:14:30

After changes in the publisher any page it is quickly reflected in the domain.sitemap.xml .

It should not displayed before the timeframe

arunpatidar
Community Advisor
Community Advisor
December 2, 2021

Hi,

I think it should work

filter.pattern="[/content/mysite/siterootpage.sitemap.xml]"
expires.time="14:30"

Arun Patidar
Sanjay_Bangar
Community Advisor
Community Advisor
December 3, 2021

Let me try this one.