Mautic – the popular marketing automation written in PHP framework symfony. This can handle large email lists but if we don’t have caching enabled, the database can be under too much load. For reports and such aspects its better to have Memcache, Opcache etc enabled. Now with PHP7.x OPCache is more or less default but we sometimes missed out Memcached.
install the Memcached which must be running as a daemon
apt-get install memcached
PHP-Memcached is the recent and complete implementation of Memcache support for PHP.
We can install the same by:
apt-get install php-memcached
sudo ln -s /etc/php/mods-available/memcached.ini /etc/php/7.1/fpm/conf.d/20-memcached.ini
sudo ln -s /etc/php/mods-available/memcached.ini /etc/php/7.1/cli/conf.d/20-memcached.ini
sudo ln -s /etc/php/mods-available/memcached.ini /etc/php/7.1/cgi/conf.d/20-memcached.ini
sudo service php7.1-fpm restart
This will ideally complete the PHP part.
To test whether memcached is active, use the following command
watch "echo stats | nc 127.0.0.1 11211"
bytes_read & bytes_written fields can be the basic indicators to help one with the status.