Support » Plugin: W3 Total Cache » Horizontal Scaling Flush Cache Across nodes

  • Resolved



    I have a horizontally scaled WordPress with shared database and filesystem. It works fine, so far, but my question is how will cache will be flushed? On single-node installation it’s kind easy, you click “clear all caches” and it really does so. Suppose I cleared it on Node-1, will node-2 be cleared aswell? If not, how can I make sure consistency across nodes?

    Note, that I’ve read:

    How do I enable Database Cluster support?
    In order to use Database Cluster you need use WordPress in network mode and enable Enterprise mode for W3 Total Cache.

    After enabling Enterprise mode you will find a area inside Database Cache box on the General Settings page. Click ‘Enable database cluster’ to enable the functionality.

    And my installation is not networked/multisite WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic


    Hello @sousstudio

    Thank you for your inquiry and I am happy to help!
    The plugin configuration is stored in the file /wp-content/w3tc-config/master.php
    In your case, there is a possibility to store plugin configuration in a database instead of a file.
    Please check our FAQ for a more detailed explanation about this.
    Thank you!

    Thread Starter


    Hey, Marko!
    Thank you so much for prompt reply. Indeed that information helps a lot. I would just want to clarify about flushing cache across nodes. Should I write a custom code for it or is there some sort of mechanism that will queue flushing cache, so only updating aforementioned config file is required (and flushing will be triggered automagically)?

    Plugin Contributor Marko Vasiljevic


    Hello @sousstudio

    Thank you for your feedback.
    Once the configuration is store in the database, flushing the cache is will be done across all nodes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Horizontal Scaling Flush Cache Across nodes’ is closed to new replies.