• 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:

    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)

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Emre Vona

    (@emrevona)

    Thread Starter Kresimir Pendic

    (@gorostas)

    Hi @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

    Now I’ve enabled CF bypass all caches and now I get cached pages for loggedin users and guests..

    Plugin Author Emre Vona

    (@emrevona)

    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

    (@gorostas)

    Hi, now I’ve switched Development mode on CF for my domain – and also enabled WPFC – this are my settings:

    I do not have persistent cache – but low level (php) opcode cache only

    Plugin Author Emre Vona

    (@emrevona)

    you should not use the opcache.

    Thread Starter Kresimir Pendic

    (@gorostas)

    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

    (@gorostas)

    Quick question @emrevona . ,, I did found issue else where – because I have custom sec settings defined in my wp-config like this

    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..

    I’ve been thinking.. what do you say for example to add new constant for example like this

    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

    (@emrevona)

    sorry but I cannot add it.

    Thread Starter Kresimir Pendic

    (@gorostas)

    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

    (@emrevona)

    you are welcome

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

You must be logged in to reply to this topic.