• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Memcache + APC

MattW

Well-known member
#2
APC is an OPCode cacher, which caches the compiled PHP pages. If it's installed on your server, it will just work. If you then want to use Libmemcached for the back end, you need to have that installed as well.

This was the part of my config to use Libmemcached for the back end

PHP:
$config['cache']['backend']='Libmemcached';
$config['cache']['backendOptions']=array(
      'compression'=>false,
      'servers' => array(
              array(
                      'host'=>'127.0.0.1',
                      'port'=>'11211',
                      'persistent' => 'true'
                )
      )
);
 

gmaister22

Active member
#3
APC is an OPCode cacher, which caches the compiled PHP pages. If it's installed on your server, it will just work. If you then want to use Libmemcached for the back end, you need to have that installed as well.

This was the part of my config to use Libmemcached for the back end

PHP:
$config['cache']['backend']='Libmemcached';
$config['cache']['backendOptions']=array(
      'compression'=>false,
      'servers' => array(
              array(
                      'host'=>'127.0.0.1',
                      'port'=>'11211',
                      'persistent' => 'true'
                )
      )
);
I am confused; do you use Libmemcached to for caching or memcached? I thought it was memcached