• Resolved developernikolai

    (@developernikolai)


    Hello there! I’m trying to configure W3TC on a site that runs on nginx. However, no matter how many settings I change, the nginx.conf in the WP root never gets updated, it always stays filled with default W3TC settings.

    Every time I change W3TC settings from the WP dashboard, I even get a notice “nginx.conf rules have been updated. Please restart nginx server to provide a consistent user experience”. But in reality, no nginx.conf rules are updated at all. What should I do?

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

    (@vmarko)

    Hello @developernikolai

    Thank you for your inquiry and I am happy to assist you with this.
    Can you please share which settings you are referring to and are you experiencing any issues (some settings not working)?
    Can you also please share your website URL so we can check this?
    Since the W3TC rules are in the nginx.conf it means that the rules are being written. Depending on the settings, you can check which rules should be in the nginx. conf in Performance>Install>Rewrite rules
    Thanks!

    Thread Starter developernikolai

    (@developernikolai)

    Hello @vmarko! Thank you for your response. The website I’m working on is https://lederwaren-template.11bytes.dev . One of the settings that does not seem to be applied is object caching (it always says Object caching 0/270 Objects using memcached).

    I understand that W3TC settings should be written to nginx.conf, but the nginx.conf in the WordPress root was initially filled with default settings, now it’s empty for some reason (no one edited it manually). So I have no idea whether W3TC works or not. As far as I understand, in order for all the settings to take effect I need to copy the contents of nginx.conf to VHosts file, but I have nothing to copy, as you see.

    Thread Starter developernikolai

    (@developernikolai)

    @vmarko Also, under Performance > Install there is no mention of the phrase “Rewrite rules” at all, I searched the whole page’s HTML content for that.

    Thread Starter developernikolai

    (@developernikolai)

    @vmarko Sorry, now I realized what I was doing wrong. I was using page caching via memcache, that’s why nothing was being written to nginx.conf, right? As soon as I switched to ‘disk enhanced’, it was populated with my settings.

    As for object caching, forget it, I see now that it works ??

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @developernikolai

    Thank you for the information.
    The nginx.conf is updated when Page Cache (disk Enhanced) is enabled, Minify (Disk), and Browser Cache. The rewrite rules are added with these settings enabled. Object caching does not add any rules to nginx.conf.
    Glad to know everything is working as expected now.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘W3TC does not update nginx.conf’ is closed to new replies.