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:
parent
3bcf7e53a7
commit
ea5610963b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user