I'm unsure of the proper way to use slaveOK with Connections::add(). It was suggested here to use Mongo::setSlaveOkay()
, but I'd like it for all queries.
I'm unsure of how to properly test it, but I'd like to think this would work:
Connections::add('mongo',
array(
'type' => 'MongoDb',
'database' => 'my_app',
'slaveOk' => true
)
);