mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-13881 fixed silly logic bug when disabling rcache - patch by Matt Clarkson; merged from MOODLE_19_STABLE
This commit is contained in:
parent
240522d152
commit
0a2925beb9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user