Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7723941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:34:13+00:00 2026-06-01T04:34:13+00:00

I currently have a single web server hosting multiple WordPress sites which use W3TC.

  • 0

I currently have a single web server hosting multiple WordPress sites which use W3TC.

Let’s call said web server “Server A”. I’m looking to clone this server, we’ll call the clone “Server B”.

I’m then looking to load balance Server A and Server B.

I also want a third “Admin” server. This is where I will log into WordPress and make changes to the sites hosted on Server A and Server B.

Incidentally I have a separate database server, and am using Rackspace Cloud Files CDN for all of my attachments / theme files / etc.

What I’m puzzled about is keeping everything in sync. Or, more specifically, keeping the W3TC cache in sync. For example, if I log in to the Admin Server and publish a new post, due to me having specified that various pages should be purged from cache when I create or edit a post, the page cache on the Admin Server will be cleared. The page caches on Server A and Server B, however, will not be cleared.

I could call a script on Server A and Server B which would use w3tc_pgcache_flush() to flush the caches on these servers, but how do I get these scripts to run when a post is created/edited on the Admin Server? Is there an event I can hook into?

Another option I had considered was that I could use lsyncd to sync any changes to the contents of the /wp-content/w3tc/ folder on the Admin Server to Server A and Server B, but then I realised that no page cache will exist on the Admin Server because no one will ever visit the instances of the sites hosted upon it.

Bonus question: Do I need to sync all of my attachments across all servers or can they reside only on the Admin Server? I ask because W3TC is set to export changed files automatically – if it looks in the /wp-content/uploads/ folder on Server A or Server B and finds it empty, is it going to remove all of my files from the CDN?

I’m hoping someone on here has implemented something similar or knows of a better way of doing what I’m trying to achieve?

Many thanks in anticipation –

chris

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:34:14+00:00Added an answer on June 1, 2026 at 4:34 am

    It’s possible to segment your WP Admin traffic from other application servers, but that is difficult if you’re not using varnish or some other scheme to redirect requests to a specific application server. I don’t recommend trying to do this kind of thing in general for WordPress at the level at which you currently operate.

    Anyway, for CDN use an origin pull provider and you won’t have to worry about anything you mentioned. Also using memcached as the backend for your page caching will again do away with all of your concerns. You would never want to use a typical network file server for /wp-content/w3tc/ because that simply won’t scale.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a web page that currently accepts a single ID value
We currently have an ASP.NET Web Application running on a single server. That server
I currently have a table which only has a single editable column. I have
I'm currently managing multiple models from a single SITE MANAGER page. I have the
I have multiple subdomains trying to use a single subdomain for authentiction using forms
I'm using one server to host multiple Node.js web apps, which are distributed across
In WebForms ASP.NET site (IIS, single app pool), I have call to lengthy web
I currently have a web based application which strictly relies on a 3rd party
I currently have some code which needs to perform multiple updates per user for
I have about 50 web-sites, load-balanced across 5 web-servers. They all use Enterprise Library

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.