Support » Plugin: Super Page Cache for Cloudflare » Plugin removed Admin toolbar while viewing the website

  • Resolved Aquif Shaikh

    (@shaikhaquif)


    Hello,

    Firstly, thanks for this awesome plugin. It works just about perfect.

    However, I have two major problems with this plugin.

    First, the plugin removes the admin toolbar when viewing the website. Also, although I have set my Google Analytics to filter out admin visits, after installing the plugin all my visits to the website are being recorded which is spoiling my analytics data. Can I do anything to solve this problem?

    Secondly, if I deactivate the plugin, I lose all my settings and I even have to re-enter the API key. This can be a pain as being a caching plugin, you might have to disable it several times to check any compatibility issues with page builders and other plugins.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Salvatore Fresta

    (@salvatorefresta)

    Hi @shaikhaquif ,

    First, the plugin removes the admin toolbar when viewing the website.

    that’s strange ’cause there is no a single line of code thinked to remove the admin toolbar.

    Also, although I have set my Google Analytics to filter out admin visits, after installing the plugin all my visits to the website are being recorded which is spoiling my analytics data. Can I do anything to solve this problem?

    Is your Javascript code updated and executed as well? I ask you this because the plugin only deals with page caching, it does not modify the page and static files in any way

    Secondly, if I deactivate the plugin, I lose all my settings and I even have to re-enter the API key. This can be a pain as being a caching plugin, you might have to disable it several times to check any compatibility issues with page builders and other plugins.

    You are right and I just changed this behavior in the version that I will release shortly. With the new version when you disable the plugin, only the page cache on Cloudflare will be disabled.

    Thank you!

    Thread Starter Aquif Shaikh

    (@shaikhaquif)

    Admin bar is only removed when I directly enter the URL of Home page or posts/pages. The Admin bar is not removed when I enter URL of category pages. Also, if I click on any post on the website, sometimes the admin bar is removed, sometimes it’s not.

    Google Analytics records the admin visits only when the admin bar is removed. So, I suppose my visits to the affected pages are being treated as non-admin visits.

    • This reply was modified 2 years, 9 months ago by Aquif Shaikh.
    Plugin Author Salvatore Fresta

    (@salvatorefresta)

    I think you are visiting the home page without the cache buster (parameter swcfpc on URL). So the cached version of the page is returned back from Cloudflare.

    Let me know

    Thread Starter Aquif Shaikh

    (@shaikhaquif)

    Exactly. I just checked that when I click on posts from the dashboard, it does add swcfpc parameter to each link.

    But, what if I have to directly visit my blog’s home page or some internal pages? Other plugins automatically serve the uncached page if you are logged in. Is it not the same with this plugin?

    Plugin Author Salvatore Fresta

    (@salvatorefresta)

    Cannot be the same unless you want buy the Enterprise Cloudflare plan 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin removed Admin toolbar while viewing the website’ is closed to new replies.