Title: WPFC &amp; Cloudflare issue
Last modified: October 2, 2025

---

# WPFC & Cloudflare issue

 *  [Kresimir Pendic](https://wordpress.org/support/users/gorostas/)
 * (@gorostas)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/)
 * Hi guys, I’ve been very happy user of WPFC for years now.. and CloudFlare also..
   but I do suspect either some CF change or plugin update change does issues on
   my pages.
 * I’ve been having for years 2 cache fallback system successfully setup (having
   locally generated / served html pages via WPFC for non logged in users + CF did
   serve it fast) – while logged-in users did have cache bypass (CF did listened
   my nginx headers and passed dynamic content to users) – but recently does not
   work (I have to either disable WPFC itself or enable it and loggedin users gets
   cached pages)
   On my server I’ve been using standard nginx directive:
 *     ```wp-block-code
       if ($http_cookie ~* (comment_author|comment_author_|wordpress_logged_in|wp_woocommerce_session)) {    set $no_cache 1;}location / {    if ($no_cache) {        try_files $uri $uri/ /index.php?$args;    }    set $serve $fullurl${uri}index.html;    try_files $serve $uri $uri/ /index.php?$args;}
       ```
   
 * I’ve had played with disabling api token CDN connection, and ON|OFF enable cache
   of WPFC – but nothing worked – except when I disable plugin it self..
 * I do realise that this could be complicated setup and you can direct me to support
   if its needed – kindly Kres.
 * note: site is in preload list => hsts ([https://hstspreload.org/?domain=udahni.com](https://hstspreload.org/?domain=udahni.com))
    -  This topic was modified 8 months, 1 week ago by [Kresimir Pendic](https://wordpress.org/support/users/gorostas/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwpfc-cloudflare-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18664878)
 * did you add the cloudflare integration?
   [https://www.wpfastestcache.com/tutorial/wp-fastest-cache-cloudflare/](https://www.wpfastestcache.com/tutorial/wp-fastest-cache-cloudflare/)
 *  Thread Starter [Kresimir Pendic](https://wordpress.org/support/users/gorostas/)
 * (@gorostas)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18664892)
 * Hi [@emrevona](https://wordpress.org/support/users/emrevona/) I did that setup(
   CDN section) – you are right!
 * I’ve noticed it changes browser ttl on CF – to longer time. I’ve tried to change
   it to respect my nginx header – tht did not help either
 * ![](https://i0.wp.com/i.imgur.com/veudCub.png?ssl=1)
 * Now I’ve enabled CF bypass all caches and now I get cached pages for loggedin
   users and guests..
 * ![](https://i0.wp.com/i.imgur.com/JdpYswy.png?ssl=1)
    -  This reply was modified 8 months, 1 week ago by [Kresimir Pendic](https://wordpress.org/support/users/gorostas/).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18664952)
 * WP Fastest Cache checks that the visitor is logged-in or not. I do not think 
   that WP Fastest Cache causes the issue.
 * are you using a server-side cache system such as proxy cache as well?
 * By the way, Can you enable the “Development Mode” on the cloudflare panel and
   try it again please?
 *  Thread Starter [Kresimir Pendic](https://wordpress.org/support/users/gorostas/)
 * (@gorostas)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18664998)
 * Hi, now I’ve switched Development mode on CF for my domain – and also enabled
   WPFC – this are my settings:
 * ![](https://i0.wp.com/i.imgur.com/1jNZgeO.png?ssl=1)
 * I do not have persistent cache – but low level (php) opcode cache only
 * ![](https://i0.wp.com/i.imgur.com/RJg6to6.png?ssl=1)
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18665016)
 * you should not use the opcache.
 *  Thread Starter [Kresimir Pendic](https://wordpress.org/support/users/gorostas/)
 * (@gorostas)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18665076)
 * Dear Emre, thanks for input – I’ve added into my ini
 * `opcache.enable=0`
 * and it is not active.. (but installed) – and now I get good results with normal
   WP logged in users, but now sociale ones (like Google login) .. I’ll have to 
   invest more time it – kind regards!
 *  Thread Starter [Kresimir Pendic](https://wordpress.org/support/users/gorostas/)
 * (@gorostas)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18666462)
 * Quick question [@emrevona](https://wordpress.org/support/users/emrevona/) . ,,
   I did found issue else where – because I have custom sec settings defined in 
   my wp-config like this
 *     ```wp-block-code
       define( 'COOKIEHASH',md5( 'https://domain.xzy' ) );define( 'LOGGED_IN_COOKIE', '1234_' . COOKIEHASH );
       ```
   
 * then plugin cant recognize my cookies – its hardcoded `wordpress_logged_in` string
   in `excludeAdminCookie` method..
 * ![](https://i0.wp.com/i.imgur.com/uzUkzcP.png?ssl=1)
 * I’ve been thinking.. what do you say for example to add new constant for example
   like this
 *     ```wp-block-code
       define('WPFC_CUSTOM_LOGGED_IN_COOKIE', '1234_');
       ```
   
 * and then use it in rule? If not I think I could get that on nginx side – but 
   that looks like alternative to me
 * Thanks, Kres
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18666492)
 * sorry but I cannot add it.
 *  Thread Starter [Kresimir Pendic](https://wordpress.org/support/users/gorostas/)
 * (@gorostas)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18666652)
 * No problem, one that in need like me can easily hook into init and do extend 
   your plugin class and override that method if in need, thanks
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18667239)
 * you are welcome

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

The topic ‘WPFC & Cloudflare issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 10 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [8 months, 1 week ago](https://wordpress.org/support/topic/wpfc-cloudflare-issue/#post-18667239)
 * Status: not resolved