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:
Diffstat (limited to 'core/Plugin/Archiver.php')
-rw-r--r--core/Plugin/Archiver.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/Plugin/Archiver.php b/core/Plugin/Archiver.php
index 90e325bc8e..fd247e0af6 100644
--- a/core/Plugin/Archiver.php
+++ b/core/Plugin/Archiver.php
@@ -141,4 +141,16 @@ abstract class Archiver
{
return $this->enabled;
}
+
+ /**
+ * By overwriting this method and returning true, a plugin archiver can force the archiving to run even when there
+ * was no visit for the website/date/period/segment combination
+ * (by default, archivers are skipped when there is no visit).
+ *
+ * @return bool
+ */
+ public static function shouldRunEvenWhenNoVisits()
+ {
+ return false;
+ }
}