by dang 10 years ago

It pains me to see HN serving pages so slowly, so I'm going to try an experiment and bury the current thread for a minute or two. Don't worry, we'll restore it or an equivalent; momentous stories like this one (or Brexit) are exceptions to the general rule against politics here. I just want to see if not having to render 2000 comments so often will let us catch a breath.

Edit: ok, that definitely helped. I think the easiest solution might be to post a different story, let that one make the front page, and link to this thread from there. The WaPo article is a bit old at this point anyhow.

If you'd like to be a good citizen—and what would be a better time for that?—then please log out to read HN today, unless you want to comment. Then we can serve you from cache and HN's single-core Racket process will creak slightly less under the strain.

ohyoutravel 10 years ago

I am logging out to read as requested, but out of curiosity, why does logging out help the page loads?

  • elsurudo 10 years ago

    Probably due to caching. The page looks exactly the same to all logged-out users, but need customization for logged-in users.

    • piyush_soni 10 years ago

      I still don't get it much (not a web developer). The only customization that I see is probably in the top bar. Can nothing be done that the page contents are still loaded from the cache but the top bar is loaded separately and customized for logged in users?

      • elsurudo 10 years ago

        Sure, it can be. You'd either need to cache the portion without the top bar (so you still need to generate some HTML), or load the same page for everyone, and then do an AJAX request for the top bar, for example. Each has its pros and cons.

        Both of these increase complexity though, so they may not have done either.

        • Cthulhu_ 10 years ago

          Complexity shouldn't be that big an argument for a large and influential site like HN. Adding partial template caching is not that complex, definitely not for silicon valley haxx0rs.

          • elsurudo 10 years ago

            Yes, I fully agree with you.

      • thesmok 10 years ago

        Not just the top bar: Upvote/Unvote buttons on each comment are different for logged-in users.

        • piyush_soni 10 years ago

          Oh yes, I missed that. So that makes the whole webpage different.

  • manojlds 10 years ago

    Unauthenticated requests can be and are cached.