diff options
Diffstat (limited to 'plugins/CoreAdminHome/Tasks.php')
-rw-r--r-- | plugins/CoreAdminHome/Tasks.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index 21008b78a3..9cccf23aba 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -18,6 +18,7 @@ use Piwik\Config; use Piwik\Container\StaticContainer; use Piwik\CronArchive; use Piwik\DataAccess\ArchiveTableCreator; +use Piwik\DataAccess\Model as CoreModel; use Piwik\Date; use Piwik\Db; use Piwik\Http; @@ -75,6 +76,7 @@ class Tasks extends \Piwik\Plugin\Tasks // general data purge on invalidated archive records, executed daily $this->daily('purgeInvalidatedArchives', null, self::LOW_PRIORITY); + $this->daily('purgeInvalidationsForDeletedSites', null, self::LOW_PRIORITY); $this->weekly('purgeOrphanedArchives', null, self::NORMAL_PRIORITY); @@ -92,6 +94,12 @@ class Tasks extends \Piwik\Plugin\Tasks $this->scheduleTrackingCodeReminderChecks(); } + public function purgeInvalidationsForDeletedSites() + { + $coreModel = new CoreModel(); + $coreModel->deleteInvalidationsForDeletedSites(); + } + public function deleteOldFingerprintSalts() { StaticContainer::get(FingerprintSalt::class)->deleteOldSalts(); |