MDL-13881 fixed silly logic bug when disabling rcache - patch by Matt Clarkson; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-03-11 09:05:20 +00:00
parent 240522d152
commit 0a2925beb9

View File

@ -311,15 +311,15 @@ global $HTTPSPAGEREQUIRED;
if ($CFG->cachetype === 'memcached' && !empty($CFG->memcachedhosts)) {
if (!init_memcached()) {
debugging("Error initialising memcached");
$CFG->cachetype = '';
$CFG->rcache = false;
}
$CFG->cachetype = '';
$CFG->rcache = false;
} else if ($CFG->cachetype === 'eaccelerator') {
if (!init_eaccelerator()) {
debugging("Error initialising eaccelerator cache");
$CFG->cachetype = '';
$CFG->rcache = false;
}
$CFG->cachetype = '';
$CFG->rcache = false;
}
} else { // just make sure it is defined