Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorm.kurzeja <m.kurzeja@clearcode.cc>2014-09-08 12:06:16 +0400
committerm.kurzeja <m.kurzeja@clearcode.cc>2014-09-08 12:06:16 +0400
commit395862b1e076c4072521291c6c702c2e2e94a7db (patch)
treea3e38da3b9a2c3a3bc43509b61b5bae2a5cfc7a8 /plugins/CoreAdminHome/Tasks.php
parentc5eca515544f358e9ec09bd0c81e7cf2d4be97b1 (diff)
Added purging of invalidated archives in scheduled tasks
Diffstat (limited to 'plugins/CoreAdminHome/Tasks.php')
-rw-r--r--plugins/CoreAdminHome/Tasks.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php
index 5f08b4f096..3f82dba9e6 100644
--- a/plugins/CoreAdminHome/Tasks.php
+++ b/plugins/CoreAdminHome/Tasks.php
@@ -20,6 +20,9 @@ class Tasks extends \Piwik\Plugin\Tasks
// general data purge on older archive tables, executed daily
$this->daily('purgeOutdatedArchives', null, self::HIGH_PRIORITY);
+ // general data purge on invalidated archive records, executed daily
+ $this->daily('purgeInvalidatedArchives', null, self::HIGH_PRIORITY);
+
// lowest priority since tables should be optimized after they are modified
$this->daily('optimizeArchiveTable', null, self::LOWEST_PRIORITY);
}
@@ -38,6 +41,11 @@ class Tasks extends \Piwik\Plugin\Tasks
}
}
+ public function purgeInvalidatedArchives()
+ {
+ ArchivePurger::purgeInvalidatedArchives();
+ }
+
public function optimizeArchiveTable()
{
$archiveTables = ArchiveTableCreator::getTablesArchivesInstalled();