W3 Total Cache
w3tc config file on multi-server environments (3 posts)

  1. mald0r0r
    Posted 4 years ago #

    I'm setting up a new multiple server environment for one of our wordpress sites.

    I ran across w3-total-cache-config.php, which appears to be the config file for w3tc. Now if these settings are store in a file (vs db) does that mean I'll need to sync this file across all the servers (nfs, sync script, etc)?

    This is in the w3tc FAQ:
    "Is this plugin server cluster and load balancer friendly?
    Yes, built from the ground up with scale and current hosting paradigms in mind."

    Seems like a file based config that I have to sync myself between servers isn't exactly cluster/load-balancer friendly.




  2. all9lives
    Posted 4 years ago #

    Jason, we experienced a similar issue with replicating the w3tc settings across servers. We have a dedicated wp-admin server which is locked down via VPN which saves content and settings for the load balanced front end servers.

    We setup a frequent rsync of the w3-total-cache-config.php settings files (including /wp-content/w3tc/*) from our wp-admin server to the front end servers, it works pretty well.

    One of the advantages we have found with having the w3tc settings outside of the DB has been replicating them (via file upload) with our test servers which have different databases, its good to have the settings separate from content.

    Hope this helps


  3. Frederick Townes
    Plugin Author

    Posted 4 years ago #

    @mald0r0r, there are lots of ways to build a cluster and deploy and application to it. Lots of people think it's possible to scale MySQL by having settings file in it and it may not be obvious but it's not. Lots of clusters use an NFS, even if they don't applications can be deployed in such a way that files are copied to multiple application servers. If you actually want advice for your case, please ask a specific question after describing your deployment.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic