THank you. How can I make it work with multiple Woo stores on the same server?
Hey, did you try it as is? What problem are you facing? This is using wp_cache_add
which should prefix with blog_id
on multisite.
It seemed to have problem with WP core
Cannot redeclare wp_cache_add() (previously declared in wp-includes/cache.php:41/
Ah, I see. Did you follow the installation steps here?
https://wordpress.org/plugins/memcached/#installation
This one doesn’t just install like a plugin. Some manual work is required.
Got it. Ty. Just a question. Why it asked for memcache instead of memcached?
> Why it asked for memcache instead of memcached?
There are 2 PHP extensions for Memcached
:
– memcache
– memcached
They have different APIs, and this plugin was written for the memcache
extension.
Thank you. I set the key for different domain but the second domain got the cache for the first domain.
Here is for the first domain
define( ‘WP_CACHE_KEY_SALT’, ‘thefirstdomain’ );
here is for the second domain:
define( ‘WP_CACHE_KEY_SALT’, ‘forthesecondomain’ );
I think there is something wrong
Hmm, are these 2 different sites on the same server? We’re running a lot of sites in parallel and it works just fine.
Are you sure it’s connecting to memcached server fine? Can you debug a bit?
Yes, It connected to memcached server just fine but the second site got the cache from the first site.
These two sites are on the same server. I’m so nervous. I had to disable WooComemrce and reactivate again and the cached went out.
Hmm, maybe you ran it first time before setting the values? You can always restart memcached server when you have set the values and see if it’s ok?