Support » Plugin: Cloudflare » Admin Bar Disappears When Active

  • Resolved pansotdev

    (@pansotdev)


    When activate the plugin and have cache on, the admin bar disappears and when disable the plugin is back again.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor thellimist

    (@furkan811)

    Hi @pansotdev,

    The issue has been discussed over here: https://wordpress.org/support/topic/anouncement-disabling-admin-bar/

    tl;dr Enabling Automatic Cache Management disables admin bar. This will be removed in the future.

    Thanks

    • This reply was modified 2 years, 4 months ago by  thellimist.

    will be this removed but what will happen with admin bar (for logout users) if i use cache everthing?
    still will be display?
    thnaks

    Plugin Contributor thellimist

    (@furkan811)

    > will be this removed but what will happen with admin bar (for logout users) if i use cache everthing?

    In this version (3.1.1) they won’t see the admin bar. In the next version if you’re using cache everything page rule they *might* see the admin bar as it may be cached.

    Please refer to this post: https://wordpress.org/support/topic/anouncement-disabling-admin-bar/

    If you’re using cache everything page rule “Bypass Cache By Cookie” feature will not allow anonymous users to see the admin bar.

    ok, thanks for answer, but then what will be better if i using cache everthing?

    to add this funtions lines:

    add_filter('show_admin_bar', '__return_false');
    add_filter('edit_post_link', '__return_null');

    or to use page rule: Bypass Cache By Cookie

    through “what is better” i want to say, what is better for speed?

    also this rule (Bypass Cache By Cookie) exist? because i can’t find.

    thanks

    Plugin Contributor thellimist

    (@furkan811)

    “Bypass Cache By Cookie” is better. Everything is handled on the edge so it is faster. Also it will solve all cases.

    add_filter('show_admin_bar', '__return_false');
    add_filter('edit_post_link', '__return_null');

    This is a partial solution. There can still be other issues which are shown to the user.

    ok, thanks, you have not answer “Bypass Cache By Cookie” will be available? because now is not.

    Plugin Contributor thellimist

    (@furkan811)

    It is available only for BIZ and higher plans:

    https://blog.cloudflare.com/caching-anonymous-page-views/

    ok, and for us who have pro, or have plus version from hosting provider, what is the way?

    Plugin Contributor thellimist

    (@furkan811)

    Unfortunately I do not know any other way except for upgrading.

    ok, but then (with the new version) if use function to hide admin bar, must also to work right?

    Plugin Contributor thellimist

    (@furkan811)

    In the new version hide admin bar will not exist. If you add it manually it would solve *only* admin bar not showing to users. There still might be other difference on a page between logged in and not logged in users. This is true in this version as well.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Admin Bar Disappears When Active’ is closed to new replies.