- set time_before_today_archive_considered_outdated to a small value, eg. 10seconds (default value)
- disable browser archiving eg, enable_browser_archiving_triggering = 0
- launch the crontab which processes the report
- API requests with date=today will return data in the next 10 seconds
- If you request API data after 10 seconds, the archive will be considered out of date and no data will be returned. Because the browser based archiving is disabled, no new archive will be processed.
This is very confusing. Instead, the outdated archive should still be returned when enable_browser_archiving_triggering = 0