Support » Plugin: Memcached Object Cache » Fatal error
Not working PHP8
Plugin Author Andrija Vučinić
Hi, what is not working? 🙂 How did you install?ohgoodiee
Fatal error: Cannot redeclare wp_cache_add() (previously declared in /var/www/html/9438/wp-includes/cache.php:41) in /var/www/html/9438/wp-content/plugins/memcached/object-cache.php on line 19Plugin Author Andrija Vučinić
Did you look at the installation guide? 🙂 https://wordpress.org/plugins/memcached/#installationMarian Kadanka
Give it up guys, use https://wordpress.org/plugins/use-memcached/ which just works, doesn’t need PECL extension and copy object-cache.php itself.grindlay
Folks, having used the
object-cache.phpfile today, a few comments.
You only need the one file, no need to install the plugin via the usual routine.
I had to manually generate a 64-char random string for the
On my server, I made the mistake of confusing
Install memcached on the server first.
If you use WHM, you can use
Module Installers > PHP PECL Installerto install the Memcache module. Remember that you need to do this for all the versions of PHP on your system.
So, server first, install memcached and test.
Next, install memcache PECL module.
(Remember to restart your webserver/php-fpm for changes to take effect)
object-cache.phpto you /wp-content folder.
This person below is right. Just download the plugin, install it and use it. I struggled to make this above particular plugin or method work for a long time. I have come back to it many times and tried so many times. Just did not work. This plugin below does. It is simple. Be sure to get rid of the garbage these guys tell you to put in your config file. If you dont this plugin will not work. I remembered and took this junk out, saved and the plugin below worked right away. I was so happy I spent the time to reset my password here just to tell about it.
Give it up guys, use https://wordpress.org/plugins/use-memcached/ which just works, doesn’t need PECL extension and copy object-cache.php itself.ulicgn
Note: The plugin recommended by @dgswim @mariankadanka is not maintained any more and also not update for some years now.
- You must be logged in to reply to this review.