AEMaaCS FrontEnd pipeline and dispatcher cache
Hi everyone!
Colleagues, we use FrontEnd pipelines on our project, but faced with strange behavior, after a pipeline run, the dispatcher cache is not flushed, on pages we see old js/css hashes (even after some significant time, more than that in cache-control header, browser cache is switched off in dev tools).
From java code (bundle com.adobe.cq.com.adobe.aem.wcm.frontend.manager) I see that FrontEnd pipeline updates and 'publishes' config only (the one under sling context aware), and seems like doesn't do anything with pages' cache.
Several solutions came to my mind:
- configure TTL on dispatcher level
- run a web-tier pipeline after FE pipeline, just to flush cache
- try ACS Dispatcher flush rules (in latest version they added AEMaaCS support)
- implement own cache flush service for this
manual page activation (worst case)
I like none of the mentioned, since to my mind it should be done as a step for FrontEnd pipeline to ensure new code is on the site.
Please share your experience, how do you flush dispatcher cache after FrontEnd pipeline runs in production programs?
Regards,
Ivan Akulenka