1
0
mirror of https://github.com/danog/dns.git synced 2025-01-22 21:41:11 +01:00

Added check that the cache is enabled.

This commit is contained in:
Danack 2014-11-21 16:06:36 +00:00
parent 3bcf7e53a7
commit ea5610963b

View File

@ -106,7 +106,7 @@ class Client {
$this->responseInterpreter = $responseInterpreter ?: new ResponseInterpreter;
if (!$cache) {
if (extension_loaded('apc')) {
if (extension_loaded('apc') && ini_get("apc.enabled")) {
$cache = new APCCache;
}
else {