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.
Tiki has a feature to connect to memcached servers to store temporary informations.
Memcached works on most Linux and BSD like systems. There is no official support for windows builds.
Generally, you should install memcached from a package provided by your operating system. The OS will solve dependencies for you and take care of security updates.
sudo apt-get install memcached
yum install memcached
See the documentation for your OS's package management system for more information.
Memcached depends on libevent. If you're running an OS installed after 2010 the package provided by your OS should be good enough.
sudo apt-get install libevent-dev
yum install memcached
If desired, you can build from source as well.
wget https://memcached.org/latest [you might need to rename the file] tar -zxf memcached-1.x.x.tar.gz cd memcached-1.x.x ./configure --prefix=/usr/local/memcached make && make test && sudo make install
To prevent memcached servers for vulnerabity to DDOS attack, make sure to disable UDP support if you do not need it. UDP is disabled by default on versions 1.5.6 and later.
It can be disabled by adding -U 0 to your start arguments while starting memcached server.
If you use a config file,you can disable UDP by adding the following line to your /etc/memcached.conf:
# Disable UDP protocol -U 0
Save /etc/memcached.conf and restart the service.
sudo service memcached restart
Then you need to install memcached php extension in order to interact with the memcached server from tiki instance.
In case you dont have any precision aboute the version, execute the command on CLI on your instance, and make sure Tiki-manager services is activated.
console.php manager:instance:detectversion your Tiki instance is running on, in case you have multiple version of php on your server.
From version 26.0, Tiki is running on php8.1, and above version on php7.4 until version 22.
sudo apt-get install php8.1-memcached
Restart apache services
sudo systemctl restart apache2
Then you are, everything is ready to work with memcached on Tiki, consider advanced mode is enabled on your tiki instance in order to see memcache menu content.
In case the memcache menu does not display content, you will need to clean your instance cache, and for unexpected case you will be require to reboot your server.
For more detail you can check:
Memcached wiki installation
Memcached DDOS