Pages

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 mousepad /etc/koha/sites/library/koha-conf.xml

Find the lines mention Memcached. Line numbers around, 308, 309.
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,

127.0.0.1:11211

The line should look like this;

<memcached_servers>127.0.0.1:11211</memcached_servers>

Add the following namespace,

koha_library

The line should look like this;

<memcached_namespace>koha_library</memcached_namespace>

Memcached configuration
Save and close the file.

Restart Memcached

sudo service memcached restart

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

References

No comments:

Post a Comment