Skip to content

Commit

Permalink
Merge pull request #516 from Geolim4/final
Browse files Browse the repository at this point in the history
Fixed #515 // Fixed inefficient Mongodb::driverCheck() method
  • Loading branch information
Geolim4 committed Sep 29, 2017
2 parents be2d5bd + df51eb6 commit 7cddc81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Mongodb/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function driverCheck()
For MongoDb with Mongo PECL support use Mongo Driver.', E_USER_ERROR);
}

return extension_loaded('Mongodb');
return class_exists('MongoDB\Collection');
}

/**
Expand Down

0 comments on commit 7cddc81

Please sign in to comment.