private function initStats($date) { $this->transientStatsdCollector->shouldRecord($this->isEnabled()); $this->transientStatsdCollector->init('misses', 0); $this->transientStatsdCollector->init('deletes', 0); $this->transientStatsdCollector->init('hits', array()); $this->transientStatsdCollector->init('medianRetrievalResponseTime', array()); $this->transientStatsdCollector->init('noCache', array()); $this->transientStatsdCollector->set('meta.version', self::VERSION); $this->transientStatsdCollector->set('meta.cacheLifetime.embedded', $GLOBALS['smwgQueryResultCacheLifetime']); $this->transientStatsdCollector->set('meta.cacheLifetime.nonEmbedded', $GLOBALS['smwgQueryResultNonEmbeddedCacheLifetime']); $this->transientStatsdCollector->init('meta.collectionDate.start', $date); $this->transientStatsdCollector->set('meta.collectionDate.update', $date); }