Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMS Dispatcher does not flush cache on author #1037

Open
YegorKozlov opened this issue Feb 5, 2023 · 0 comments
Open

AMS Dispatcher does not flush cache on author #1037

YegorKozlov opened this issue Feb 5, 2023 · 0 comments

Comments

@YegorKozlov
Copy link

It appears that the AMS Dispatcher configuration does not provide a way to flush cache on author dispatcher.

We develop authoring components whos client libraries are cached in author dispatcher, and we need to invalidate it after each deployment. Try as we might, we could not make it work in our AMS. Publisher cache gets invalidated just fine, but the Author cache won't.

On closer inspection it smells like an issue in the dispatcher.ams archetype configuration which we used to bootstrap the project.

The project defines a dedicated farm for AEM author, but this farm is never selected for Flush requests.

The "flush" vhost is not registered in any of ./conf.dispatcher.d/vhosts/*.any, so when a flush request comes in, Dispatcher falls back to the last available farm which is publishfarm, or whatever the last in the client setup is. We confirmed it from the logs . Every time we sending a Flush request, Dispatcher logs the following message:

[Sun Feb 05 08:21:36 2023] [W] [pid 40] No farm matches host 'flush', selected last farm 'publishfarm'

So no matter what parameters we pass to the Flush agent, it always resolves to a publisher farm and invalidates cache in the publish document root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant