diff options
Diffstat (limited to 'core/ArchiveProcessor/Rules.php')
-rw-r--r-- | core/ArchiveProcessor/Rules.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/ArchiveProcessor/Rules.php b/core/ArchiveProcessor/Rules.php index 03b26acf2f..223241e980 100644 --- a/core/ArchiveProcessor/Rules.php +++ b/core/ArchiveProcessor/Rules.php @@ -285,6 +285,18 @@ class Rules } /** + * Returns true if the archiving process should skip the calculation of unique visitors + * across several sites. The `[General] enable_processing_unique_visitors_multiple_sites` + * INI config option controls the value of this variable. + * + * @return bool + */ + public static function shouldSkipUniqueVisitorsCalculationForMultipleSites() + { + return Config::getInstance()->General['enable_processing_unique_visitors_multiple_sites'] == 1; + } + + /** * @param array $idSites * @param Segment $segment * @return bool @@ -310,4 +322,4 @@ class Rules } return false; } -} +}
\ No newline at end of file |