public static function initCorePiwikInTrackerMode()
    {
        if (SettingsServer::isTrackerApiRequest()
            && self::$initTrackerMode === false
        ) {
            self::$initTrackerMode = true;
            require_once PIWIK_INCLUDE_PATH . '/core/Option.php';

            Access::getInstance();
            Config::getInstance();

            try {
                Db::get();
            } catch (Exception $e) {
                Db::createDatabaseObject();
            }

            PluginManager::getInstance()->loadCorePluginsDuringTracker();
        }
    }
public static function initCorePiwikInTrackerMode()
    {
        if (SettingsServer::isTrackerApiRequest()
            && self::$initTrackerMode === false
        ) {
            self::$initTrackerMode = true;
            require_once PIWIK_INCLUDE_PATH . '/core/Option.php';

            Access::getInstance();
            Config::getInstance();

            try {
                Db::get();
            } catch (Exception $e) {
                Db::createDatabaseObject();
            }

            PluginManager::getInstance()->loadCorePluginsDuringTracker();
        }
    }
public static function initCorePiwikInTrackerMode ( ) { if ( SettingsServer :: isTrackerApiRequest ( ) && self :: $ initTrackerMode === false ) { self :: $ initTrackerMode = true ; require_once PIWIK_INCLUDE_PATH . '/core/Option.php' ; Access :: getInstance ( ) ; Config :: getInstance ( ) ; try { Db :: get ( ) ; } catch ( Exception $ e ) { Db :: createDatabaseObject ( ) ; } PluginManager :: getInstance ( ) -> loadCorePluginsDuringTracker ( ) ; } }
Used to initialize core Piwik components on a piwik.php request
Eg. when cache is missed and we will be calling some APIs to generate cache
Used to initialize core Piwik components on a piwik . php request Eg . when cache is missed and we will be calling some APIs to generate cache