Multi-country, multi-language invalidating dispatcher cache from publisher
I am having issues trying to get the automatic invalidating dispatcher cache from publisher to work. Our setup is a bit complicated, we have a multi-country, multi-language site, I replaced our real domain name by sample.com:
- /content/www-sample-com_be (be = country)
- nl ( = language) -> https://www.sample.com/be-nl.html
- en -> https://www. sample.com/be-en.html
- fr -> https://www. sample.com/be-fr.html
- /content/www-sample-com_fr
- fr -> https://www. sample.com/fr.html
- /content/www-sample-com_lu
- fr -> https://www.sample.com/lu.html
- /content/www-sample-com_nl
- nl -> https://www. sample.com/nl.html
- /content/www-sample-com_uk
- en -> https://www. sample.com/uk.html
Dispatcher (/var/www/html/content/):
- www-sample-com
- be-en
- be-en.html
- be-fr
- be-fr.html
- be-nl
- be-nl.html
- fr
- fr.html
- lu
- lu.html
- nl
- nl.html
- uk
- uk.html
Here is the issues, when the publisher receives an updates and wants to invalidate the caches there is a mismatch in directory structure, example:
com.day.cq.replication.Agent.flushsample-aem-dispatcher >> Handle: /content/www-sample-com_nl/nl
As you can see it uses the livecopy name to flush the dispatcher directory structure but those don't match:
- /content/www-sample-com_nl/nl (livecopy)
- /content/www-sample-com/nl (dispatcher)
Is there a way to make this work? Thanks in advance!

