This is the issue.
I have followed the guide in the official documentation. Additionally, I created a virtual host for invalidation_only though that was not explicitly in the docs, but I found that as a recommendation in this forum.
What is happening is:
I have /content/sitea and /content/siteb.
I send the invalidation request for /content/siteb but in the dispatcher logs what I see is:
Touched /var/www/html/content/sitea/.stat
If I request /content/siteb/test.html, I get the test.html correctly and the file is created, but because of the incorrect .stat file being created in /content/sitea/ I have to delete the file again in order to clear the invalidated file.
What could be the reason for this behavior?
Flush agent is on the publish agents, and the request to http://<server>:80/invalidation_only/dispatcher/invalidate.cache returns 200.
Solved! Go to Solution.
Thank you! Apache rules did the trick.
Refereed the following URL and helped to implement the same - Dispatcher Cache Invalidation for Multi Site Configuration - Adobe CQ5(AEM) .Please check if this will help you.
Thank you! Apache rules did the trick.