Memcache
Permalink
Hi,
I am running a C5 (5.6.1) instance on my local machine to develop for theming. I want to get memcache to work properly.
I have the following in my site.php file:
I am running ubuntu 12 server with memcached installed. I have php5-memcache and php5-memcached installed and on for fastcgi. Running nginx.
When I run the following to watch the memcache instance performance while reloading an authenticated (toolbar is loaded) C5 page:
My hits and misses are not incremented at all.
There are no nginx errors in the log during these page loads.
EDIT: Today I logged into my production server and was greeted with this message:
Why is C5 not using memcache?
I am running a C5 (5.6.1) instance on my local machine to develop for theming. I want to get memcache to work properly.
I have the following in my site.php file:
define('CACHE_LIBRARY', 'memcache'); $backendOptions = array( 'servers' => array( array('host' => 'localhost', 'port' => 11211, 'persistent' => true, 'weight' => 1, 'timeout' => 5, 'retry_interval' => 15, 'status' => true, 'failure_callback' => '' ), ), ); define('CACHE_BACKEND_OPTIONS', serialize($backendOptions));
I am running ubuntu 12 server with memcached installed. I have php5-memcache and php5-memcached installed and on for fastcgi. Running nginx.
When I run the following to watch the memcache instance performance while reloading an authenticated (toolbar is loaded) C5 page:
watch "echo stats | nc 127.0.0.1 11211"
My hits and misses are not incremented at all.
There are no nginx errors in the log during these page loads.
EDIT: Today I logged into my production server and was greeted with this message:
Warning: Memcache::addserver(): Invalid failure callback in /var/www/*/concrete/libraries/3rdparty/Zend/Cache/Backend/Memcached.php on line 166 Warning: MemcachePool::delete(): No servers added to memcache connection in /var/www/*/concrete/libraries/3rdparty/Zend/Cache/Backend/Memcached.php on line 241
Why is C5 not using memcache?
Remove the
I guess that the Server-add cancels when this error occurs.