• Resolved ChromaDot

    (@soojooko)


    I know the dynamic cache is disabled for WP logged in users. However, my website has its own independent user login system for access to custom functionality. What I would like is to disable the dynamic cache for anybody logged into my custom system ( not the WP login ). Is there any way to programmatically disable the dynamic cache on-the-fly? This way, I could keep the dynamic cache for normal visitors, but disable it for users logged in to my system. Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    If it’s a custom system then we shouldn’t cache users in first place. You could use the exclude functionality but if it’s a completely different app, then the plugin won’t even be loaded there… Can you be more speciffic?

    Thread Starter ChromaDot

    (@soojooko)

    How it works is I have a login form on one of my wordpress pages which logs into my custom system. When logged in, my own custom admin bar ( not the WP admin bar ) appears at the top of all the wordpress pages to let the user know they are logged in. When dynamic cache is turned on, this custom admin bar doesn’t appear – which is expected, as the page is being served from the cache. So what I would like – in a perfect world – is the ability to dynamically disable the cache when somebody is logged into my system. But keep it enabled for normal visitors. Basically, the same way you disable it for WP logged in users. Hope this all makes sense?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Programmatically enable/disable dynamic cache’ is closed to new replies.