I have a LAMP stack with PHP FPM and multiple virtual hosts with Wordpress sites on.
I have tried to install memcashed using this tutorial.
In Wordpress sitehealth I get: "You should use a persistent object cache".
In /etc/memcached.conf I have:
-l my IP address
-l ::1
I have set this ufv rule:
sudo ufw allow from client_system_private_IP/32 to any port 11211
In /var/log/apache2/error.log I get:
Got error 'PHP message: PHP Fatal error: Cannot redeclare wp_cache_add() (previously declared in...
EDIT:
I just found this.
It appears that:
The function is defined in two separate files or
The function is defined in two places in the same file
And can be fixed by using include_once instead of include when including my PHP file.
Now I just need to figure how to do so?
How to enable memcached on Wordpress?