• Greetings,

    First of all: the plugin is awesome! On a “normal” single-site installation it works wonders ?? On a multisite, however, the entire context of a page is cached for all subpages ??

    Tried it with a page-wise activation, unfortunately the same.

    Does anyone have any idea how I can solve this?

    Best regards, Andrea

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Andrea

    (@aneises)

    @terrylin I would be more than happy to help improve the plugin further. If you have an idea for further tests (or you need more information): that would be great.

    The plugin has so much potential!

    Plugin Author Terry L.

    (@terrylin)

    I am glad you like it.
    I will fix it and make it work on multi-site in next update.

    Terry

    • This reply was modified 3 years, 9 months ago by Terry L..
    Thread Starter Andrea

    (@aneises)

    That′s nice, Terry, thank you very much!

    Thread Starter Andrea

    (@aneises)

    @terrylin Did you already have time to plan an update?

    Andrea

    Thread Starter Andrea

    (@aneises)

    Hello we have the same problem with the module if we activate it on more than one wordpress the first site is taken into account

    @esiinformatique Yes we all have the same problem by the way I fixed it this way:
    in folder : plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Driver
    depend on which driver we use example I’m using redis so open Redis.php in the last line we have a function:

        private function getKeyName(string $key): string
        {
            return 'sc:' . $key;
        }
    

    By replace it this :

        private function getKeyName(string $key): string
        {
            $prefix = 'sc_'.$_SERVER['SERVER_NAME'].'_';
            return $prefix . $key;
        }
    

    This seems to work fine for Redis, but the Memcache driver has no such private getKeyName function. Perhaps there’s a better way to add support in this case, e.g. by setting a unique WP_CACHE_KEY in the config…

    robaxxx

    (@robaxxx)

    Did anyone figure out how to fix this? It was going so well until I discovered this problem. I’ve got Memcache and Wincache and they both do it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[WP Multisite] Same cache for all?’ is closed to new replies.