I’ve been using memcached since PHP 5.6 for my persistent object caching needs but when I upgraded to PHP 7, I stop using it since I wasn’t able to make the recent plugin to work with the said version of PHP. Compiling of the plugin from source always fails so I gave up the idea and remove the object-cache.php plugin from my wordpress sites. I even tried REDIS and APCu to replace memcached but I am not convinced with the performance of these two or maybe I was not able to configure them properly to work for my sites.

However, recently I was able to compile memcached plugin to be used for PHP7. Here’s how I compile it.

# change to directory where you want the source code of memcached
# retrieve the source code from github
git clone https://github.com/php-memcached-dev/php-memcached
cd php-memcached
# Refer to this http://git-scm.com/docs/git-checkout
git checkout php7
# start the compile process and install
./configure --disable-memcached-sasl
make install

I will post the source of this procedure here later when I found the site again. I forgot to bookmark it so I wasn’t able to put it here.

0 0 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments