WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mald0r0r
    Member
    Posted 2 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.

    Thanks,

    Jason.

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. all9lives
    Member
    Posted 2 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

    Jeremy

  3. Frederick Townes
    Member
    Plugin Author

    Posted 2 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

About this Topic