terrylinooo / cache-master

WordPress cache plugin.
GNU General Public License v3.0
39 stars 9 forks source link

Multiple Wordpress websites on the same server will cause errors #7

Open zhujitop opened 3 years ago

zhujitop commented 3 years ago

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.

altf4444 commented 3 years ago

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.

f1-outsourcing commented 3 years ago

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'

Dudematters commented 2 years ago

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 commented 2 years ago

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.... );

jonathanpak commented 2 years ago

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 !

f1-outsourcing commented 2 years ago

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

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

channchetra commented 2 years ago

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

victorelec14 commented 2 years ago

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

f1-outsourcing commented 2 years ago

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

channchetra commented 2 years ago

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 commented 2 years ago

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

zhujitop commented 1 year ago

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?