Memcached in Koha: How to enable memcached in Koha 17.xx and Koha 18.xx ?

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.
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.
Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.
For more details visit : https://memcached.org/
How to enable Memcached in Koha?
First check if your Memcached is running? To check go to Home -> About Koha -> System Information. If your memcached is not defined, you will see Memcached error similar to the screenshot below.

To install memcached run the following command.

# sudo apt-get install memcached
  
Configure Memcached in koha-conf.xml

# vim /etc/koha/sites/library/koha-conf.xml

At around line no. 308 and 309, add memcached server details.



Add the Memcached IP and namespace at the line no. 308 and 309.
<memcached_servers>127.0.0.1:11211</memcached_servers>
<memcached_namespace>koha_library</memcached_namespace>



Save and exit the file.

Restart the Memcached.
#sudo service memcached restart 

Now check the memcached Status in the Koha again . Go to Home -> About Koha -> System Information.

Memcached should be running.

Comments

Popular posts from this blog

Solution to Moodle Error: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write.

ACTION_FAILED:OU_INVALID: Solution for GoogleApps bulk user upload issue, username@domainname.com:ACTION_FAILED:OU_INVALID. This error is because you have not specified the Org Unit Path properly.

(Solved) (Fixed )MariaDB Unmet Dependencies on Ubuntu 20.04.