• Hi all!

    I have an issue with caching and preloading pages for logged-in users.

    So, my website is visible only for logged-in users (intracorporate) and the only one way to log in is to use corporate google account. In functions.php there is the code, which redirects all unauthorized users to the login page (custom made).

    So, if I turn off this redirection, every caching plugin works great, TTFB reduces to 40 ms (light speed!). When I turn on this redirection, TTFB becomes 2-3 sec (tooooo long) and causes even Connection Timeout error, when too much users try to load the website at the same time (due to heavy request processing in backend).

    Some caching plugins allow to cache pages for logged-in users, but it works like this: when User A visit the page for the first time, he have to wait 2-3 seconds. Then, if he reload the same page, it loads immediately (40 ms). But it is cached only for him, so when User B tries to load the same page for the first time, he also have to wait about 2-3 seconds.

    That’s because caching plugin “surf” the pages like unauthorized user, and can see only login page due to redirection.

    As I can understand, there are 2 ways to resolve the issue: 1) force plugin to preload pages somehow, even for logged-in users (by the way, i don’t need individual versions of cached pages for each user. they looks the same for each user), 2) force plugin to deliver cached page to User B, if User A already visited this page (as I said, I don’t need individual versions)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Which caching plugin are you using?

    Thread Starter andyganesh

    (@andyganesh)

    @sterndata thank you for joining the discussion:) I managed to cache pages for logged-in users, as I described, with WP Optimize and Hummingbird. All other plugins (I have tried about dozen of them) do not have this functionality (or I just didn’t succeed…). It is ok for me to use any plugin, free or premium, the main goal is to solve the issue, because I want every user to load any page in a flash.

    Thank you in advance

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I’m using hummingbird on one of my sites and am pretty happy with it, though on that site I need to disable caching for logged in users. If you have questions about particular plugins, each has their own support area. Click “Support Topics” when viewing the plugin’s page.

    Thread Starter andyganesh

    (@andyganesh)

    @sterndata yes, I am happy with this plugin too, but my case is too uncommon. Usually authorization is added to differentiate the content for different users, but my website uses authorization only to access the website.

    I started the same topics on these plugins’ forums. But, as I said before, it is not mandatory to use these plugins, I can use any to resolve the issue. That’s why I am here 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Caching & Preload for Logged-in Users’ is closed to new replies.