invalidate cahce-dispatcher flush agent | Community
Skip to main content
msina
Level 3
Aug 9, 2018 5:49 PM UTC
Solved

invalidate cahce-dispatcher flush agent

Hi,

I have a query about dispatcher flush agent invalidate cache.

We have configured dispatcher flush agent on publishing instance.

When we update any page in author e.g update the image then we can see the change appears in publisher and dispatchers.

But when we check in the dispatcher server

/opt/communique/dispatcher/cache/test/multiple-image-test/_jcr_content/root/responsivegrid/image.coreimg.png

[root@dis01 image.coreimg.png]# ls -ltr

total 128

-rw-r--r--. 1 apache apache 90438 Aug  9 11:28 1533828434065.png

-rw-r--r--. 1 apache apache 36339 Aug  9 11:29 1533828539134.png

We see both images there.

Isn't it the first image should get deleted?

regards

Sina

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
Aug 10, 2018 3:49 PM UTC

It remains as stale file in the cache. If it's getting requested, the dispatcher will refetch it from AEM and then store it in the cache as "fresh" content. No need to implement a custom purge or delete to deliver current content.

(Nevertheless you might run a complete delete of the cache from time to time. If you remove pages or assets from AEM publish by deactivation, the stale files remain in the cache undefinitly, unless you don't clean them up manually.)

Jörg

4 replies

msina
msinaAuthor
Level 3
Aug 10, 2018 4:23 PM UTC

Thanks for the clarification.

Translate
joerghoh
joerghohAccepted solution
Employee
Aug 10, 2018 3:49 PM UTC

It remains as stale file in the cache. If it's getting requested, the dispatcher will refetch it from AEM and then store it in the cache as "fresh" content. No need to implement a custom purge or delete to deliver current content.

(Nevertheless you might run a complete delete of the cache from time to time. If you remove pages or assets from AEM publish by deactivation, the stale files remain in the cache undefinitly, unless you don't clean them up manually.)

Jörg

Translate
msina
msinaAuthor
Level 3
Aug 10, 2018 3:25 PM UTC

What do you mean by "kind of lazy"? Will AEM delete the images later on? What is out of the box house keeping for these images?

Do we need to make our customized script to delete ?

Translate
joerghoh
Employee
Aug 9, 2018 7:44 PM UTC

No, the invalidation is kind of lazy; files are only marked as invalid, but not deleted; except the page/asset which is replicated and therefor causes the invalidation. But all other pages and assets remain as file in the cache.

Translate