I slightly modified the existing index clean command.
It originally contained a logic with a time limit that enforced a minimum interval of one hour.
This means that if a news item is hidden and the command is executed, and then the site crawler runs one hour later, the solution works as intended.
I extended this with a new checkbox called “Clean indexes on execute”, which seems logical when the task is intended to run immediately after News modifications — this is my recommended approach.
I configured the current structure on the Pimosting.
A similar setup should be applied on production so that the news index is refreshed.
If an update is needed during the day, first the index clean task should be executed, and afterwards the site crawler scheduler task should be run.
On Pimhosting:
- task 15 first, then
- task 23 (I assume on PROD this is task 20)
Also I recommend setting the Scheduler task Recurring run every night!
At the moment Pimhosting:
News cleaner runs every hour, but the Sitecrawler runs every day 03:00.