We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 38ac5a70 authored by mattl's avatar mattl

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)) {
// 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