Title: [WP Multisite] Same cache for all?
Last modified: February 16, 2021

---

# [WP Multisite] Same cache for all?

 *  [Andrea](https://wordpress.org/support/users/aneises/)
 * (@aneises)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/)
 * 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](https://wordpress.org/support/users/aneises/)
 * (@aneises)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-14067920)
 * [@terrylin](https://wordpress.org/support/users/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.](https://wordpress.org/support/users/terrylin/)
 * (@terrylin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-14068484)
 * 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 5 years, 3 months ago by [Terry L.](https://wordpress.org/support/users/terrylin/).
 *  Thread Starter [Andrea](https://wordpress.org/support/users/aneises/)
 * (@aneises)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-14068833)
 * That´s nice, Terry, thank you very much!
 *  Thread Starter [Andrea](https://wordpress.org/support/users/aneises/)
 * (@aneises)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-14610030)
 * [@terrylin](https://wordpress.org/support/users/terrylin/) Did you already have
   time to plan an update?
 * Andrea
 *  Thread Starter [Andrea](https://wordpress.org/support/users/aneises/)
 * (@aneises)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-15106235)
 * Here is an idea how to fix: [https://github.com/terrylinooo/simple-cache/issues/10](https://github.com/terrylinooo/simple-cache/issues/10)
 *  [esiinformatique](https://wordpress.org/support/users/esiinformatique/)
 * (@esiinformatique)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-15197140)
 * 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
 *  [Sovichetra](https://wordpress.org/support/users/sovichetra/)
 * (@sovichetra)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-15490635)
 * [@esiinformatique](https://wordpress.org/support/users/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;
           }
       ```
   
 *  [iceblink](https://wordpress.org/support/users/iceblink/)
 * (@iceblink)
 * [4 years ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-15679699)
 * 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](https://wordpress.org/support/users/robaxxx/)
 * (@robaxxx)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-16184527)
 * 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.

 * ![](https://ps.w.org/cache-master/assets/icon-256x256.png?rev=2392499)
 * [Cache Master](https://wordpress.org/plugins/cache-master/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cache-master/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cache-master/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-master/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-master/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-master/reviews/)

 * 9 replies
 * 6 participants
 * Last reply from: [robaxxx](https://wordpress.org/support/users/robaxxx/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/wp-multisite-same-cache-for-all/#post-16184527)
 * Status: not resolved