• Hi guys,

    I’m running a multisite install. One of my sites is a woocommerce store using the Aelia Currency Switcher plugin. They’ve got an advanced cache plugin which I’ve dropped into ac-plugins and it’s working well with the store (each currency has it’s own separately cached set of pages).

    The only issue is, it’s messing up the caching on the other sites in my network. Is there any way (or are there any hacks) to enable an advanced caching plugin on only one site in my network, and disable it for the others?

    https://www.ads-software.com/plugins/zencache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t believe that’s possible because, despite its name, multisite is just one installation. So you can only ever have one advanced-cache.php file.

    If you want to achieve what you’re looking for, you probably need to install your store as a separate install within a subdirectory of your main site. That way, its back-end will be entirely independent of your multisite even though, if you set it up right, it will appear from the front-end to be totally integrated with it.

    For reference, the issue was solved by tweaking the caching plugin slightly. The change was to add a few lines of code to check which site is being accessed and, if the site doesn’t require the advanced caching, skip the loading of the Advanced Caching module.

    In pseudo code:

    // Initialise the Advanced Caching plugin only for specific sites
    if(<site is X, Y, Z>) {
      init_ac_plugin();
    }

    Simple, yet effective. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite – enable advanced cache plugin for one site only’ is closed to new replies.