Expand my Community achievements bar.

SOLVED

Disable flush agent programmatically

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

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