protected function MongoDBCache::doFlush in Plug 7
Flushes all cache entries.
Return value
boolean TRUE if the cache entries were successfully flushed, FALSE otherwise.
Overrides CacheProvider::doFlush
File
- lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ MongoDBCache.php, line 147
Class
- MongoDBCache
- MongoDB cache provider.
Namespace
Doctrine\Common\CacheCode
protected function doFlush() {
// Use remove() in lieu of drop() to maintain any collection indexes
$result = $this->collection
->remove();
return isset($result['ok']) ? $result['ok'] == 1 : true;
}