Title: Cache Bypass Question
Last modified: January 15, 2018

---

# Cache Bypass Question

 *  Resolved Anonymous User 14978628
 * (@anonymized-14978628)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cache-bypass-question/)
 * 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/](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)

 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cache-bypass-question/#post-9867004)
 * 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)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cache-bypass-question/#post-9867023)
 * 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?
 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cache-bypass-question/#post-9868944)
 * 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)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cache-bypass-question/#post-9869775)
 * 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.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: Anonymous User 14978628
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/cache-bypass-question/#post-9869775)
 * Status: resolved