Add hook allowing to prevent certain plugins archiving #10367
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
Goal of this issue is to add functionality allowing to prevent certain plugins archiving on the fly (during archiver run).
Currently it is only possible to prevent given plugin archiving by disabling it entirely.
However for performance reasons it might be beneficial to prevent heavy plugin archiving under some circumstances to allow archiving run till the end (for ex. prevent actions plugin archiving, but allow remaining to process their data).
Basically such decision could be done based on plugin name and archiving parameters.
After core code review I have found no possibility to do this in nice way but to add new hook in PluginsArchiver class.
MR for that feature is available at #10366
Please let me know if such approach is acceptable in core, or should such feature be provided in different way?
The text was updated successfully, but these errors were encountered: