AEM cloud Dispatcher Invalidate Multiple Domains issue
Hi ,
I am trying to setup multiple domains on the AEM cloud and i have done all the vhosts and farm configuration. I am able to render both sites with different docroot . However i am having trouble invalidating dispatcher cache when replicating the page from author to publish and the dispatcher cache invalidation. when i try to publish the the XML, the cache invalidation needs to be done for "wwwfarm" however i am always seeing localhost being selected and its going to the last farm "stagefarm' and invalidating in the wrong path. I did not find anything related this adobe documentation. If we have multiple sites with different docroot on the same AEM cloud instances how do we invalidate the dispatcher cache on the right cache directory. Any inputs are appreciated?
farms[wwwfarm].cache.docroot = /mnt/var/www/html/www ----> www.site1.com
farms[stagefarm].cache.docroot = /mnt/var/www/html/stage ---> www.site2.com
No farm matches host 'localhost', selected last farm 'stagefarm', referer: about:blank
Found farm stagefarm for localhost, referer: about:blank
checking [/dispatcher/invalidate.cache], referer: about:blank
Activation detected: action=Activate [/content/dam/www/xml-sitemaps/es-sitemap.xml], referer: about:blank
Touched /mnt/var/www/html/stage/.stat, referer: about:blank
Touched /mnt/var/www/html/stage/content/.stat, referer: about:blank
Touched /mnt/var/www/html/stage/content/dam/.stat, referer: about:blank
response.status = 200, referer: about:blank
response.headers[Server] = "Communique/2.6.3 (build 5221)", referer: about:blank
cache flushed,