git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 38ac5a70 authored by mmn's avatar mmn

Automatic memcache support enabler for config

parent 20bad688
......@@ -440,6 +440,16 @@ abstract class Installer
($this->db['type'] == 'pgsql' ? "\$config['db']['quote_identifiers'] = true;\n\n":'').
"\$config['db']['type'] = {$vals['db_type']};\n\n";
// Auto memcache support detection
$cfg .= '
foreach(array("Memcache", "Memcached") as $plugin) :
if (class_exists($plugin)) {
addPlugin($plugin);
break;
}
endforeach;
';
// Normalize line endings for Windows servers
$cfg = str_replace("\n", PHP_EOL, $cfg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment