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
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-11-19 07:57:55 +0300
committerGitHub <noreply@github.com>2020-11-19 07:57:55 +0300
commit40ce0672484f6799e11da61d1d0b04bd4213d4fb (patch)
tree800aeb1165481cc46bc550ea442561abf5154039 /core
parentc5b517afc7bb23c7b920118ea1ec8c2a824de52d (diff)
Prevent some archiving notes being printed for each site (#16746)
* Prevent some archiving notes being printed for each site * no longer call init
Diffstat (limited to 'core')
-rw-r--r--core/CronArchive.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php
index df98bd3274..fd16a424c7 100644
--- a/core/CronArchive.php
+++ b/core/CronArchive.php
@@ -765,6 +765,11 @@ class CronArchive
return;
}
+ if (empty($this->segmentArchiving)) {
+ // might not be initialised if init is not called
+ $this->segmentArchiving = new SegmentArchiving($this->processNewSegmentsFrom, $this->dateLastForced);
+ }
+
$this->logger->debug("Checking for queued invalidations...");
// invalidate remembered site/day pairs