$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
'backendOptions'=>array(
'servers' =>array(
array(
'host' => 'localhost', // your memcached server ip /address
'port' => 11211 // memcached port
)
),
'compression' => false
)
);
Yes. Add the following to /library/config.php
PHP:$config['cache']['backend'] = 'Memcached'; $config['cache']['backendOptions'] = array( 'backendOptions'=>array( 'servers' =>array( array( 'host' => 'localhost', // your memcached server ip /address 'port' => 11211 // memcached port ) ), 'compression' => false ) );
Do you know what memcached is and for what you should use it?
memcached can cache data. APC can cache both PHP bytecode (to free PHP of obligation to compile it again and again) and data.Hmm i know nothing of APC i thought memcached was good
Thanks where would i find APC i googled it came up with "American Power Conversion" :/ Can both be used also on the server?memcached can cache data. APC can cache both PHP bytecode (to free PHP of obligation to compile it again and again) and data.
So, if you don't have any PHP cache on your system I suggest you try APC.
Just be aware there are some issues with APC WRT to slam prevention:
http://xenforo.com/community/threads/bug-in-apc-style-editor-and-apc-error.11367/#post-152549
We use essential cookies to make this site work, and optional cookies to enhance your experience.