Exemplo n.º 1
0
 /**
  * @return \Piwik\Cache\Lazy
  */
 private static function getCache()
 {
     if (is_null(self::$cache)) {
         self::$cache = PiwikCache::getLazyCache();
     }
     return self::$cache;
 }
Exemplo n.º 2
0
 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;
 }