diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2021-02-02 04:33:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 04:33:54 +0300 |
commit | 41ca1a79e702a3330299db6d6552b81ed77c4f23 (patch) | |
tree | 71bd3481c0554729190840a6a4aba70d55a845a4 /plugins/CoreConsole | |
parent | 25a2da15d49e0a5170e844cefacea7d6bdd49837 (diff) |
Allow filtering for invalidations for specific reports in core:archive (mostly for automation purposes). (#16991)
Diffstat (limited to 'plugins/CoreConsole')
-rw-r--r-- | plugins/CoreConsole/Commands/CoreArchiver.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/CoreConsole/Commands/CoreArchiver.php b/plugins/CoreConsole/Commands/CoreArchiver.php index 6407f4bbe2..b33396460c 100644 --- a/plugins/CoreConsole/Commands/CoreArchiver.php +++ b/plugins/CoreConsole/Commands/CoreArchiver.php @@ -49,6 +49,7 @@ class CoreArchiver extends ConsoleCommand $archiveFilter->setRestrictToDateRange($input->getOption("force-date-range")); $archiveFilter->setRestrictToPeriods($input->getOption("force-periods")); $archiveFilter->setSkipSegmentsForToday($input->getOption('skip-segments-today')); + $archiveFilter->setForceReport($input->getOption('force-report')); $segmentIds = $input->getOption('force-idsegments'); $segmentIds = explode(',', $segmentIds); @@ -109,5 +110,6 @@ class CoreArchiver extends ConsoleCommand . "useful if you specified --url=https://... or if you are using Piwik with force_ssl=1"); $command->addOption('php-cli-options', null, InputOption::VALUE_OPTIONAL, 'Forwards the PHP configuration options to the PHP CLI command. For example "-d memory_limit=8G". Note: These options are only applied if the archiver actually uses CLI and not HTTP.', $default = ''); $command->addOption('force-all-websites', null, InputOption::VALUE_NONE, 'Force archiving all websites.'); + $command->addOption('force-report', null, InputOption::VALUE_NONE, 'If specified, only processes invalidations for a specific report in a specific plugin. Value must be in the format of "MyPlugin.myReport".'); } } |