From 32015796d0a049d0118724dba240fdb56b4e1504 Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Sat, 15 Mar 2014 14:27:26 +1300 Subject: [PATCH] Fixes #4857 - When trigger=archivephp is found in the request, never disable archiving. this will make sure that visitFrequency, when calling VisitsSummary.get with a segment=visitorType==returning, then it will be pre-processed at all times by archive.php. --- core/ArchiveProcessor/Rules.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/ArchiveProcessor/Rules.php b/core/ArchiveProcessor/Rules.php index 9091e9103f..a9fa609d5a 100644 --- a/core/ArchiveProcessor/Rules.php +++ b/core/ArchiveProcessor/Rules.php @@ -241,6 +241,9 @@ class Rules if ($periodLabel == 'range') { return false; } + if( SettingsServer::isArchivePhpTriggered() ) { + return false; + } $processOneReportOnly = !self::shouldProcessReportsAllPlugins($idSites, $segment, $periodLabel); $isArchivingDisabled = !self::isRequestAuthorizedToArchive(); -- GitLab