• Resolved markussss

    (@markussss)


    Hi,

    I experimented a lot with caching and Cloudflare. Your plugin is incredible and way easier to set up than the ordinary caching plugins ??

    I have an issue, I am not sure if I am able to resolve it.
    The website I build is very fast when caching is enabled.

    It’s a membership platform for an NPO with approx. 100 members. As soon as they log in, the cache gets ignored on every single page – the site become very slow. Impossible to navigate.

    Yes, there are quite a few plugins, but it’s impossible to build a membership platform with fundraising plugins, etc. without plugins.

    Almost most of the pages are the same for all members (except for user profile page). Is there any option to load those pages also from cache?

    Thanks for sharing your know how and experience.

    Markus

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @markussss,
    First of all really sorry for the delayed reply due to the disastrous weather here.
    Now coming to your case, this is not an issue but how caching system operates. This plugin will cache the pages for non-logged in users and cache those pages in CF CDN and when accessed will be provided from the CDN.

    Now caching a page means basically taking the HTML provided by the server and store that. So, no dynamic operations can be performed here. While to perform dynamic operations PHP must be executed which is not happening when pages are served from CF CDN cache.

    So, when a user logs in as a logged in user they can perform many dynamic operations, the WP top bar might show up and so on. There is also the maker of keeping the user logged in by validating hjis session and other things.

    So, for logged-in users it is very important that pages are never served from cache and instead served from the server so that PHP gets executed.

    Moreover while your loggedin session being slower, I would suggest get a good managed hosting like BigScoots so that together you can figure out exactly what is causing the slowness and act accordingly. Maybe it is your theme or some specific custom code or some plugin. Unjless you know it you cannot take an action.

    Thread Starter markussss

    (@markussss)

    Thanks Saumya for getting back to me … after lots and lots of research, I understood how caching works for static sites. Basically, WP sites become almost as fast as handcoded HTML sites.

    Then on the other hand, I ask myself how all those member platforms work when they do hardly get the support from cache (except for images, etc.)

    As I see it, it would be extremely helpful to decide as an administrator which pages will get served from cache in which not even though members are logged in. But that could also be risky to put this responsibility into the website admins hands.

    For a membership site, logged in members access:
    – the exact same pages as non-logged-in users → keep static from cache
    – additional pages for members only → load dynamically from origin server

    I understand this has nothing to do with Cloudflare or the plugin but is a more general topic (I do not know yet how to solve).

    Plugin Contributor iSaumya

    (@isaumya)

    Then on the other hand, I ask myself how all those member platforms work when they do hardly get the support from cache (except for images, etc.)

    – There can be many factor, based on how their server is configured how well optimized their code is etc.

    it would be extremely helpful to decide as an administrator which pages will get served from cache in which not even though members are logged in.

    – That is not possible, as I said due to the dynamic nature of a login session, loggedin users will always be served from the origin server and not from cache. Please note though, for loggedin users your static files will still be served from CF CDN just the first request the is the type HTML will be served from origin server instead of CF CDN cache.

    I understand this has nothing to do with Cloudflare or the plugin but is a more general topic (I do not know yet how to solve).

    – As I said if you have a good managed hosting, they should be able to point you to the right direction of what is taking the most time and from there you have to back track and figure out the issue.

    Thread Starter markussss

    (@markussss)

    Thank you very much, Saumya!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cached pages for logged in user at membership platform?’ is closed to new replies.