What's the recommended way to make some pages cached in dispatchers only for a given period of time (e.g. 24 hours)? | Community
Skip to main content
LinearGradient
Level 6
October 16, 2015
Solved

What's the recommended way to make some pages cached in dispatchers only for a given period of time (e.g. 24 hours)?

  • October 16, 2015
  • 6 replies
  • 1955 views

Hi,

Is there a way to configure dispatchers to automatically invalidate all pages that match a given pattern (e.g. home.products.xml) only for 1 day in the dispatcher cache?

Thanks.

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

But as of now there is no such configuration which can be done in dispatcher.

You can file a support ticket with Adobe for your usecase.

6 replies

Level 2
October 16, 2015
        You can write a cron job which clears cache once a day.
Level 2
October 16, 2015
        Not sure I understand the issue you are facing with dispatcher cron job. Do you mean that when the cron runs on dispatcher, publish might not have generated a new version of the page and dispatcher would pull the older version again?
LinearGradient
Level 6
October 16, 2015

That's what I am doing right now. And more or less it is okay. However when done through the dispatcher, it can make sure the latest version of the page can be retrieved from the dispatcher before deleting it and otherwise serve whatever is already cached.

LinearGradient
Level 6
October 16, 2015

I am referring to this section of the docs: http://docs.adobe.com/docs/en/dispatcher/disp-config.html#Automatically Invalidating Cached Files

The /invalidate property defines the documents that are automatically invalidated when content is updated.

With automatic invalidation, Dispatcher does not delete cached files after a content update, but checks their validity when they are next requested. Documents in the cache that are not auto-invalidated will remain in the cache until a content update explicitly deletes them.

Automatic invalidation is typically used for HTML pages. HTML pages often contain links to other pages, making it difficult to determine whether a content update affects a page. To make sure that all relevent pages are invalidated when content is updated, automatically invalidate all HTML pages.

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

But as of now there is no such configuration which can be done in dispatcher.

You can file a support ticket with Adobe for your usecase.

Lokesh_Shivalingaiah
Level 10
October 16, 2015

true and hence we use the /invalidate property so that dispatcher will take care of it. but it cant be configured with a time frame as an attribute to this property