From 83b11afaed5ca61047c1918eec3a846a7c57c721 Mon Sep 17 00:00:00 2001 From: mattab Date: Tue, 18 Feb 2014 15:40:16 +1300 Subject: [PATCH] Tracker debug messages when refreshing cache --- core/Tracker/Cache.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/Tracker/Cache.php b/core/Tracker/Cache.php index d16f73e163d..edf8185d985 100644 --- a/core/Tracker/Cache.php +++ b/core/Tracker/Cache.php @@ -10,7 +10,9 @@ use Piwik\ArchiveProcessor\Rules; use Piwik\CacheFile; +use Piwik\Common; use Piwik\Config; +use Piwik\Log; use Piwik\Option; use Piwik\Piwik; use Piwik\Tracker; @@ -84,6 +86,7 @@ static function getCacheWebsiteAttributes($idSite) * @param int $idSite The site ID to get attributes for. */ Piwik::postEvent('Tracker.Cache.getSiteAttributes', array(&$content, $idSite)); + Common::printDebug("Website $idSite tracker cache was re-created."); // restore original user privilege Piwik::setUserHasSuperUserAccess($isSuperUser); @@ -147,6 +150,7 @@ static public function getCacheGeneral() */ Piwik::postEvent('Tracker.setTrackerCacheGeneral', array(&$cacheContent)); self::setCacheGeneral($cacheContent); + Common::printDebug("General tracker cache was re-created."); return $cacheContent; }