Disable flush agent programmatically | Community
Skip to main content
Level 2
October 16, 2015
Solved

Disable flush agent programmatically

  • October 16, 2015
  • 1 reply
  • 666 views

I have a nightly batch which inserts thousands of nodes in my Publish instances. Each node inserted triggers the flush agent. I would like to disable this flush agent at the begining of the batch and enable it at the end. How can I achieve this ?

Or is it possible to modify the flush agent so that only modifications on cq:Page nodes trigger the flush agent ?

I'm running on CQ 5.5 SP3.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

You can modify directly the flush agent node structure and set "enabled" to false and back again. It should do what you want. IIRC there's no public API to do this in a cleaner fashion.

Jörg

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

You can modify directly the flush agent node structure and set "enabled" to false and back again. It should do what you want. IIRC there's no public API to do this in a cleaner fashion.

Jörg