diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-02-04 06:03:34 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-02-04 06:03:34 +0300 |
commit | c73613ef94651b9d5a6f74f65079b43eeb6ed744 (patch) | |
tree | 1f5fb6ddce05fe5b266cc8d97d439cb42e478766 | |
parent | ca6012cfc8721922db83f4847992469c58e5fdd5 (diff) |
Optimize all archive tables only monthly (#14068)
There is no need to run this every day over all tables.
-rw-r--r-- | plugins/CoreAdminHome/Tasks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index e6c7d1b242..5d8dadb3a5 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -65,7 +65,7 @@ class Tasks extends \Piwik\Plugin\Tasks $this->daily('purgeInvalidatedArchives', null, self::LOW_PRIORITY); // lowest priority since tables should be optimized after they are modified - $this->daily('optimizeArchiveTable', null, self::LOWEST_PRIORITY); + $this->monthly('optimizeArchiveTable', null, self::LOWEST_PRIORITY); $this->daily('cleanupTrackingFailures', null, self::LOWEST_PRIORITY); $this->weekly('notifyTrackingFailures', null, self::LOWEST_PRIORITY); |