Support » Plugin: W3 Total Cache » Any special settings for Nginx?

  • Resolved essaund

    (@essaund)


    Hello,

    I’m trying to switch from Apache to Nginx and I noted that, some cache plugins have special nginx.conf configurations.

    Does W3TC has such or it’s built to work out of the box?

    Regards

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

    (@vmarko)

    Hello @essaund

    Thank you for your inquiry and I am happy to assist you with this.
    W3 Total Cache detects the environment (apache, nginx, IIS, litespeed) and adds the necessary rules.
    So once W3TC is installed and configured, the rules will be added to the nginx config.
    Thank you!

    Thread Starter essaund

    (@essaund)

    Okay thanks to much.

    Thread Starter essaund

    (@essaund)

    Hello,

    I have a question. Where do these rules apply then in Nginx (W3TC Nginx WordPress rewrite rules)?

    In WP Super Cache, it has a dedicated section where you can apply the custom rules are provided by WordPress (WP Super Cache WordPress rewrite rules).

    And these rules make the server and php processes stable when using WP Super Cache.

    But on W3TC, the server is unstable on Nginx. Can’t even manage 50clients/minute on Loader.io. Processor roasts at 100% with php-fpm processes getting stuck.

    On Apache, W3TC goes all the way to 10,000clients/minute with almost 0% processor load. I get the same results with WP Super Cache on Nginx using the special rules that WordPress has provided on the link above.

    And also, Nginx blocks GET variables on minification when using W3TC. That doesn’t happen on Apache with W3TC.

    Something I’m not doing right?

    • This reply was modified 4 months, 3 weeks ago by essaund.
    Thread Starter essaund

    (@essaund)

    @vmarko ~ any help about this please?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @essaund

    Sorry for the late reply.
    Any custom rules should be applied outside of W3TC rules in nginx.conf.
    W3 Total Cache works fine on Nginx so this depends on a server and hosting environment. Can you please share where is the website hosted, is it a multisite or a single website, what hosting plan you are using, and the specs of the server?
    THanks!

    Thread Starter essaund

    (@essaund)

    Hello,

    I don’t think the issue relates to the host provider but hosting environment. Perhaps a few customizations and I’ll be good to go.

    1. Host is Contabo VPS (Also tried it on NetCup VDS)

    2. Contabo (4vCPU 2.2Ghz each, 8GB RAM)

    3. NetCup VDS (2 Dedicated CPU cores 3.35Ghz each, 8GB RAM)

    4. Single website

    On OpenLiteSpeed and Apache it works great out of the box. But on Nginx I’m unable to replicate the same performance as described earlier.

    • This reply was modified 4 months, 2 weeks ago by essaund.
    • This reply was modified 4 months, 2 weeks ago by essaund.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @essaund

    I’ve tried to replicate this however this is specifically related to your environment.
    This really depends on the settings and if you are aching everything to disk, meaning Page Cache, Minify, Object Cache, Database cache…
    Which Options do you have enabled in the Performance>General settings and which caching method you are using for caching modules?
    Thanks!

    Thread Starter essaund

    (@essaund)

    Hello

    Sorry for the delay.

    It was the hosting environment. There was no FastCGI installed.

    I also had to use the link provided by W3TC under INSTALL and pasted it on the conf nginx file of the website.

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