Enable Memcached with Koha

What is Memcached?
"Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load" (https://memcached.org/).

Why we should use Memcached with Koha?
Memcached can boost the performance of Koha.

I have tried to enable Memcached with Koha versions 17.05.x to 18.05.x.

Check Memcached working with Koha

Open Koha > About Koha > Server Information

The red flag indicates that Memcached not working

Install Memcached

sudo apt-get install memcached

Configure Memcached with Koha
Open Koha configuration file and make changes for Memcached.

sudo leafpad /etc/koha/sites/library/koha-conf.xml

Find the lines mention Memcached. Line numbers around, 308, 309.
In Leafpad, enable line numbers by checking Options > Line Numbers from the menu.

Memcached settings in koha-conf.xml file.

Add the following address between space for Memcached IP,

The line should look like this;


Add the following namespace,


The line should look like this;


Memcached configuration
Save and close the file.

Restart Memcached

sudo service memcached restart

Now check the Koha > About Koha > Server Information page,


No comments:

Post a Comment