• The way you prevent cf prevent cache for logged in user is nonsense:
    if (is_admin() || is_user_logged_in() || is_feed()) {
    header(“Cache-Control: no-cache, must-revalidate, max-age=0”);
    }

    That code will run on our hosting server, our hosting server know user logged in or not checking it via is_user_logged_in()

    But how CF know this user already logged in or not before hitting our server?

    If CF know hosting server responded with “Cache-Control: no-cache, must-revalidate, max-age=0”. Then it means CF not getting the page from the cache, but from our server.

    It means cacheeverything need to hit our server first to know whether this user is logged in or not.

    Logged in user doesnt just browse ‘wp-admin’ logged in user can also browse other page like homepage. So how CF know user browsing homepage is logged user or not without requesting from our server first?

  • The topic ‘stup*d plugin.’ is closed to new replies.