Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 63d7e8a

Browse files
committed
Prevent enabling cache at install if apc/apcu is not enabled. Should fix #1261
1 parent 4481a94 commit 63d7e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/boot.conf/BootConfLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public function createBootstrapConf($data)
350350
"group_switch_value" => "auth.sql",
351351
"SQL_DRIVER" => array("core_driver" => "core", "group_switch_value" => "core")
352352
));
353-
if($data["APC_CACHE_ENABLE"]){
353+
if($data["APC_CACHE_ENABLE"] && (function_exists('apc_fetch') || function_exists('apcu_fetch'))){
354354
$rand = StringHelper::slugify(trim(parse_url($data["SERVER_URL"], PHP_URL_PATH), "/"));
355355
if(empty($rand)) $rand = substr(md5(time()), 0, 8);
356356
$coreCache["UNIQUE_INSTANCE_CONFIG"] = array_merge($coreCache["UNIQUE_INSTANCE_CONFIG"], array(

0 commit comments

Comments
 (0)