cache-master icon indicating copy to clipboard operation
cache-master copied to clipboard

Multiple Wordpress websites on the same server will cause errors

Open zhujitop opened this issue 5 years ago • 12 comments

If there are multiple Wordpress websites in the server, they will be cached on the same website. If you visit websites B and C, they will all jump to website A.

zhujitop avatar Jan 10 '21 13:01 zhujitop

Yes, same problem here. It´s if a.) the installation is Multisite or b.) seperate installations / WP-databases, but on the same server. I´ve tried REDIS, but will check is the problem persits with other backends. [Update] The problem is apparently independent of the driver.

altf4444 avatar Feb 16 '21 17:02 altf4444

Yes, same problem here. It´s if a.) the installation is Multisite or b.) seperate installations / WP-databases, but on the same server. I´ve tried REDIS, but will check is the problem persits with other backends. [Update] The problem is apparently independent of the driver.

Same here with multisite. To bad, I had the impression this plugin performed better than others, but then again could also be because of the problem with multiple sites. Currently using w3 total cache, but that has to much 'other stuff'

f1-outsourcing avatar Aug 19 '21 20:08 f1-outsourcing

I have the same problem. Is there a way to have more websites on the same server (and IP) and use this plugin? I use Memcached and WP-Rocket.

Dudematters avatar Oct 28 '21 07:10 Dudematters

Hope someone can confirm this; Would this allow multi-site servers to manage the cache correctly per site if added to wp-config.php? define( 'WP_CACHE_KEY_SALT', '...long id.... );

Dudematters avatar Nov 02 '21 07:11 Dudematters

Hello, I encounter the exact same issue while using memcached and the plugin works in "expert mode". The websites are isolated in different databases and folders but they share the same server. The performance of this plugin seem to actually be better than some other plugins I've tried so that'd be great if it could work on multisites !

jonathanpak avatar Nov 13 '21 22:11 jonathanpak

The bug is not here but in the library it is uses, solution is here:

https://github.com/terrylinooo/simple-cache/issues/10

f1-outsourcing avatar Nov 22 '21 07:11 f1-outsourcing

Looking that on that too not work with multisite, I want expert mode on multisite but it's not work there are anyway?

channchetra avatar Nov 29 '21 14:11 channchetra

Hi,

I have the same problem, this happens when using the same server and the same cache server.

Perhaps in the keys the name of the domain could be given to make them different.

domain1.posts domain2.post

thanks

victorelec14 avatar Feb 09 '22 12:02 victorelec14

OMG nobody is even reading anything here. If this is added you can never have any problems because it gets the (virtual) hostname

$prefix = 'sc_'.$_SERVER['SERVER_NAME'].'_';

READ

f1-outsourcing avatar Feb 09 '22 12:02 f1-outsourcing

OMG nobody is even reading anything here. If this is added you can never have any problems because it gets the (virtual) hostname

$prefix = 'sc_'.$_SERVER['SERVER_NAME'].'_';

READ

Thank @f1-outsourcing anyway where we add this snip? I hope we can have the way to fix this.

channchetra avatar Mar 23 '22 17:03 channchetra

Oh I see we can add that to library driver thank you it seem working fine.

channchetra avatar Mar 23 '22 17:03 channchetra

Oh I see we can add that to library driver thank you it seem working fine.

What file do I need to change to achieve this?

zhujitop avatar Oct 27 '22 16:10 zhujitop