mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
eaccelerator: never set the mode if we failed to init
This commit is contained in:
parent
5f0314ab24
commit
85cab9d8cd
@ -22,14 +22,13 @@ class eaccelerator {
|
||||
function eaccelerator() {
|
||||
global $CFG;
|
||||
if ( function_exists('eaccelerator_get')) {
|
||||
$mode = 'eaccelerator';
|
||||
$this->mode = 'eaccelerator';
|
||||
} elseif (function_exists('mmcache_get')) {
|
||||
$mode = 'mmcache';
|
||||
$this->mode = 'mmcache';
|
||||
} else {
|
||||
debugging("\$CFG->eaccelerator is set to true but the required functions are not available. You need to have either eaccelerator or turckmmcache extensions installed, compiled with the shmem keys option enabled.");
|
||||
}
|
||||
|
||||
$this->mode = $mode;
|
||||
$this->prefix = $CFG->dbname .'|' . $CFG->prefix . '|';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user