• Resolved Anonymous User 14978628

    (@anonymized-14978628)


    Hi, I’ve recently changed hosts and my new server is NginX. Could you please clarify how i can bypass php?

    Looking at this page (https://www.keycdn.com/support/wordpress-cache-enabler-plugin/) i see an entry to put in the htaccess for Apache, which is what i was doing before.

    But there’s also a secton for Nginx which looks like something i would put in functions.php and not htaccess. When i do this i get the X-Cache-Handler header showing php is not bypassed.

    So my question is, do i still use the Apache htaccess code? And what do i do with the Nginx code? Does it go in my functions.php and used with the Apache htaccess code?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The Nginx code goes in your nginx.conf file. We typically recommend using the default Cache Enabler configuration as it requires no setup and the speed difference between the default settings and the custom settings are negligible.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    I’ve currently got the Apache code in my htaccess and this seems to be bypassing php even though i’m now on nginx server. Do i then not need this code if using the nginx code in the nginx.conf file?

    Maybe your server uses both Apache and Nginx, in that case you can leave the Apache code in your .htaccess and don’t need to bother adding the Nginx code. If you were using solely Nginx, then you would need to use the Nginx code.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Hey Cody,

    Yeah, i heard back from my host (Siteground) and they said their server uses a mixture of Apache and Nginx.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Cache Bypass Question’ is closed to new replies.