Skip to content

Commit

Permalink
Tracker debug messages when refreshing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Feb 18, 2014
1 parent 30ac0fa commit 83b11af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/Tracker/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 83b11af

Please sign in to comment.