From c73613ef94651b9d5a6f74f65079b43eeb6ed744 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Mon, 4 Feb 2019 16:03:34 +1300 Subject: Optimize all archive tables only monthly (#14068) There is no need to run this every day over all tables. --- plugins/CoreAdminHome/Tasks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/CoreAdminHome/Tasks.php') 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); -- cgit v1.2.3