$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
'compression' => false,
'servers' => array(
array(
// your memcached server IP /address
'host' => 'localhost',
// memcached port
'port' => 11211,
)
)
'servers' => array(
array(
// your memcached server IP /address
'host' => 'localhost',
// memcached port
'port' => 11211,
)
)
);
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
'compression' => false,
'servers' => array(
array(
// your memcached server IP /address
'host' => 'localhost',
// memcached port
'port' => 11211,
)
array(
// your memcached server IP /address
'host' => 'localhost',
// memcached port
'port' => 11211,
)
)
);
Thanks I will give those a try. Should I miss with the weight option between the servers?
I believe it would be as follows.
Code:$config['cache']['backend'] = 'Memcached'; $config['cache']['backendOptions'] = array( 'compression' => false, 'servers' => array( array( // your memcached server IP /address 'host' => 'localhost', // memcached port 'port' => 11211, ) ) 'servers' => array( array( // your memcached server IP /address 'host' => 'localhost', // memcached port 'port' => 11211, ) ) );
If that doesn't work
Code:$config['cache']['backend'] = 'Memcached'; $config['cache']['backendOptions'] = array( 'compression' => false, 'servers' => array( array( // your memcached server IP /address 'host' => 'localhost', // memcached port 'port' => 11211, ) array( // your memcached server IP /address 'host' => 'localhost', // memcached port 'port' => 11211, ) ) );
Parse error: syntax error, unexpected T_ARRAY, expecting ')' in /home/z22se/public_html/forum/library/config.php on line 31
$config['cache']['backendOptions']=array(
'compression'=>false,
'servers' => array(
array(
'host'=>'localhost',
'port'=>11211,
)
array( #This is line 31
'host'=>'IP ADDRESS',
'port'=>11211,
)
)
);
Parse error: syntax error, unexpected T_ARRAY, expecting ')' in /home/z22se/public_html/forum/library/config.php on line 32
$config['cache']['backendOptions']=array(
'compression'=>false,
'servers' => array(
array(
'host'=>'localhost',
'port'=>11211,
)
)
'servers' => array( # This is line 32
array(
'host'=>'IP ADDRESS',
'port'=>11211,
)
)
);
We use essential cookies to make this site work, and optional cookies to enhance your experience.