How to disable archiving the segment reports for specific plugins?
We noticed some plugins may cause a lot of CPU load. A solution is to disable a plugin that causes a lot of loads. However, sometimes it is great to still have at least report data for « All visits » but not segments. This way say 95% of the load is reduced while the biggest value might be still there.
When this is disabled for a plugin then:
Don’t archive any data for this plugin if the segment is not empty
In the report itself, when a segment is viewed and there is no data, then show a footer message in the report that viewing segments for this report are disabled.
Reports for « all visits » (the segment is empty) should still be archived regularly
Basic Setup for multiple plugins
[General]
disable_archiving_segment_for_plugins="Plugin1,Plugin2,Plugin3"
Where you can provide the name of plugins in a comma-separated list. Could also use an array if that makes it easier like
[General]
disable_archiving_segment_for_plugins[]="Plugin1"
disable_archiving_segment_for_plugins[]="Plugin1"
disable_archiving_segment_for_plugins[]="Plugin1"
You could also disable plugins with specific site IDs
[General_42]
disable_archiving_segment_for_plugins[]="Plugin1"