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
Post a Comment