• Resolved dc360

    (@dc360)


    Hi guys,

    We have a Load balancer with 2 or more instances, with one Ligthsail Managed Database and a Bucket associated with a Distribution for the media.

    I would like to use W3 for my wordpress site, however, I’ve had troubles with other caching plugins in the past due to the architecture we use. Sometimes an user request tries to get a cached file (css, js, ..), but it doesn’t exits in the load balancer chosen instance (404), causing errors in the page structure. It means, the cached file was generated in one of the instances and exist, but the request could be attended for an instance that hasn’t generated it yet, causing the 404.

    It is possible to find a workaround for this with W3?

    Thanks in advance for your help.

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

    (@vmarko)

    Hello @dc360

    Thank you for reaching out and I am happy to help!

    Let me check this and make sure I can provide propper instructions for you. Thank you for your patience

    Thread Starter dc360

    (@dc360)

    Hi Marko, great! Thank you.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @dc360

    Thank you for your patience

    W3 Total Cache stores the config settings in a config file on a server. In order for the config settings to sync up with every server, you can download a settings file from one server and upload it to the other server after the configuration is done.
    Alternatively, you can move the wp-content folder to a shared directory on a file server. make sure the directory permissions allow modify rights just like your current wp-content folder. Then create a virtual directory within your website and point it to the shared path.
    You can also do the same with the /cache/ folder only.
    Let me know if this helps and if you have had better solution in mind.

    Thanks!

    Thread Starter dc360

    (@dc360)

    Hi Marko,

    Definitely I’m going to give it a try to your proposed solution. I’ll post here later the test results.

    Thank you!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @dc360

    Thank you for your feedback.
    Please let me know if it works!

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.