clearing and refetching bulk content | Community
Skip to main content
Adilmo
Level 4
Mar 31, 2021 5:41 AM UTC
Solved

clearing and refetching bulk content

We need to bulk publish content (10000s of pages).  They are created as a scheduled event so require almost immediate publish for all the pages in one go.  Main challenge is how to invalidate content on dispatcher (10000s of pages) and then re-fetch these pages again (on multiple dispatchers). 

 

What is the best strategy to do this ?? Is there a possibility of leveraging network storage for dispatcher cache??

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Apr 1, 2021 8:08 PM UTC

8 replies

Umesh_Thakur
New Participant
Apr 5, 2021 4:50 AM UTC

As @joerghoh  mentioned, you can go with the re-fetching flush agent for this purpose with some modification. If number of pages are 10k then refetching al those 10k pages will flood your publisher with request from dispatcher and again will be a performance issue for you so it will be better to re-fetch only very frequent page out of those 10k like homepage and all and cache all other pages on user request. With the help of java you can use path URL to allow re-fetching.

Hope this will help.

Umesh Thakur

Translate
joerghoh
joerghohAccepted solution
Employee
Apr 1, 2021 8:08 PM UTC
Adilmo
AdilmoAuthor
Level 4
Apr 6, 2021 11:23 AM UTC
yes
Translate
Asutosh_Jena_
New Participant
Mar 31, 2021 6:44 AM UTC

Hi @adilmo 

You can issue an HTTP request that causes the dispatcher to delete cached files, and immediately retrieve and recache the file.

Delete and immediately re-cache files when web sites are likely to receive simultaneous client requests for the same page. Immediate recaching ensures that Dispatcher retrieves and caches the page only once, instead of once for each of the simultaneous client requests.

 

POST /dispatcher/invalidate.cache HTTP/1.1
CQ-Action: Activate
Content-Type: text/plain
CQ-Handle: /content/something/en_us/123.html
Content-Length: 12

/content/something/en_us/123.html

 

Also, you can write a flush-cache servlet which can send an invalidate request to Dispatcher and can recache the content. Please take necessary precautions while implementing the flush-cache servlet. Please see the link below for more details:

https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalidate.html?lang=en#manually-invalidating-the-dispatcher-cache

 

Hope this helps!

Thanks!

 

Translate
Adilmo
AdilmoAuthor
Level 4
Mar 31, 2021 8:16 AM UTC
I Know that but my question is more on how to manage clearing and refetching of 1000s of pages on multiple dispatchers
Translate