@tsteur opened this Issue on September 8th 2021 Member

See https://github.com/matomo-org/matomo/commit/af44ee1de20bd2f9ace63e7f69f2312c08cfa61e#diff-f41c275e883996b8b69cb765b1818e12e82cbe034e648bc3f7d03610cc7abad1R449-R456

The trigger=archivephp flag will cause scheduled tasks to allow archiving. Seems this hack was needed for purgeOutdatedArchives to work. We should fix this issue so that scheduled tasks won't launch archiving when browser archiving is disabled.

This can otherwise cause many tasks to become very slow (including scheduled reports, custom alerts, some on the cloud). And it can cause issues with other archives that were invalidated in the sense that for example some reports might be archived multiple times or that they are archived in the wrong order and therefore causes results to be wrong under circumstances. Because usually the archiver makes sure to first run all daily archives, then the weekly, then ... vs this way there might be race conditions or other problems maybe.

Powered by GitHub Issue Mirror