/** * Open the cache for reading. * @return MessageGroupCache */ protected function open() { if ($this->cache === null) { $this->cache = CdbReader::open($this->getCacheFileName()); if ($this->cache->get('#version') !== '3') { $this->close(); unlink($this->getCacheFileName()); } } return $this->cache; }
/** * Open the cache for reading. * @return MessageGroupCache */ protected function open() { if ( $this->cache === null ) { $this->cache = CdbReader::open( $this->getCacheFileName() ); if ( $this->cache->get( '#version' ) !== '3' ) { $this->updateCacheFormat( $this->cache ); $this->close(); return $this->open(); } } return $this->cache; }