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:
authorPeter Zhang <peter@innocraft.com>2021-10-08 03:50:21 +0300
committerGitHub <noreply@github.com>2021-10-08 03:50:21 +0300
commitb9ba1e58d076708ccab251428b6d4d7a12ab3dc2 (patch)
treeddf32d387e169f4b4a8d548e0bc1074cda418c5f /plugins/CoreAdminHome/Tasks.php
parent41b79fe4dbd179338df22c90f2a44aa7c63b4183 (diff)
scheduled tasks should not launch archiving when browser archiving is disabled (#18101)
Diffstat (limited to 'plugins/CoreAdminHome/Tasks.php')
-rw-r--r--plugins/CoreAdminHome/Tasks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php
index 0adfb63973..803880b621 100644
--- a/plugins/CoreAdminHome/Tasks.php
+++ b/plugins/CoreAdminHome/Tasks.php
@@ -233,7 +233,7 @@ class Tasks extends \Piwik\Plugin\Tasks
*/
public function purgeOutdatedArchives()
{
- if ($this->willPurgingCausePotentialProblemInUI()) {
+ if ($this->willPurgingCausePotentialProblemInUI() && !Rules::$disablePureOutdatedArchive) {
$this->logger->info("Purging temporary archives: skipped (browser triggered archiving not enabled & not running after core:archive)");
return false;
}