mirror of
https://github.com/danog/dns.git
synced 2025-01-23 05:51:11 +01:00
Added check that the cache is enabled.
This commit is contained in:
parent
3bcf7e53a7
commit
ea5610963b
@ -106,7 +106,7 @@ class Client {
|
|||||||
$this->responseInterpreter = $responseInterpreter ?: new ResponseInterpreter;
|
$this->responseInterpreter = $responseInterpreter ?: new ResponseInterpreter;
|
||||||
|
|
||||||
if (!$cache) {
|
if (!$cache) {
|
||||||
if (extension_loaded('apc')) {
|
if (extension_loaded('apc') && ini_get("apc.enabled")) {
|
||||||
$cache = new APCCache;
|
$cache = new APCCache;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user