From 4df10df9be84928daee184f7768bf1902298896b Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Thu, 22 Jan 2015 02:54:22 +0000 Subject: refs #7031 invalidate reports only if we are actually allowed to archive, should make some reports faster especially when browser archiving is disabled --- core/Archive.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/Archive.php') diff --git a/core/Archive.php b/core/Archive.php index ae62f5edfb..307718f52b 100644 --- a/core/Archive.php +++ b/core/Archive.php @@ -558,7 +558,6 @@ class Archive */ private function get($archiveNames, $archiveDataType, $idSubtable = null) { - $this->invalidatedReportsIfNeeded(); if (!is_array($archiveNames)) { $archiveNames = array($archiveNames); @@ -657,6 +656,8 @@ class Archive */ private function cacheArchiveIdsAfterLaunching($archiveGroups, $plugins) { + $this->invalidatedReportsIfNeeded(); + $today = Date::today(); foreach ($this->params->getPeriods() as $period) { -- cgit v1.2.3