/** * @return \Piwik\Cache\Lazy */ private static function getCache() { if (is_null(self::$cache)) { self::$cache = PiwikCache::getLazyCache(); } return self::$cache; }
protected static function getInstance() { if (is_null(self::$trackerCache)) { $ttl = Config::getInstance()->Tracker['tracker_cache_file_ttl']; self::$trackerCache = new CacheFile('tracker', $ttl); } return self::$trackerCache; }