Minnesota Twins News & Rumors Forum
Results 1 to 18 of 18

Thread: Twins Daily speed

  1. #1
    Owner MVP Brock Beauchamp's Avatar
    Posts
    8,105
    Twitter
    @rocketpig76
    Like
    48
    Liked 1,585 Times in 823 Posts
    Blog Entries
    6

    Twins Daily speed

    In my never-ending quest to keep this site running, I have implemented new server-side caching. Hopefully, this will help cure some of the site's woes when traffic hits its peak during game times and between 9am-11am Central time.

    If you continue to see slowdowns, let me know in this thread. I'll get more aggressive with the settings if this isn't enough to keep the site stable during our busy hours.

    Forum software is a &^*%. Normally, one would just cache the entire site along with its database tables but one can't do that with a forum, as the database is adding/deleting fields every few seconds.

  2. #2
    Senior Member All-Star JB_Iowa's Avatar
    Posts
    3,314
    Like
    1,300
    Liked 1,279 Times in 740 Posts
    Brock,

    Thanks for all you do to keep this site up and functioning well. In our excitement over the content, it is easy to forget that the content doesn't matter if the site is a pain in the *** to use!

  3. This user likes JB_Iowa's post and wants to buy him/her a steak dinner:

    jimv2 (04-08-2014)

  4. #3
    Owner MVP Brock Beauchamp's Avatar
    Posts
    8,105
    Twitter
    @rocketpig76
    Like
    48
    Liked 1,585 Times in 823 Posts
    Blog Entries
    6
    Thanks, jb. Most of the time, it's pretty fun work to maintain and build the site but every once in a while, we run into a situation like this caching issue that makes me want to put my fist through the computer monitor.

  5. #4
    Senior Member Big-Leaguer righty8383's Avatar
    Posts
    591
    Like
    11
    Liked 11 Times in 9 Posts
    Blog Entries
    2
    The speed has been noticeably better, at least for me.

  6. #5
    Owner MVP Brock Beauchamp's Avatar
    Posts
    8,105
    Twitter
    @rocketpig76
    Like
    48
    Liked 1,585 Times in 823 Posts
    Blog Entries
    6
    Quote Originally Posted by righty8383 View Post
    The speed has been noticeably better, at least for me.
    Same here, though our traffic is considerably lower today. I don't think we'll see the server stressed until tomorrow, maybe not until Monday morning.

  7. #6
    Owner MVP Brock Beauchamp's Avatar
    Posts
    8,105
    Twitter
    @rocketpig76
    Like
    48
    Liked 1,585 Times in 823 Posts
    Blog Entries
    6
    Still wasn't happy with the speed, figured out how to up the cache limit size.

    I'm gonna fix this, damn it.

  8. #7
    Twins Moderator MVP USAFChief's Avatar
    Posts
    6,599
    Like
    3,670
    Liked 3,159 Times in 1,351 Posts
    Quote Originally Posted by Brock Beauchamp View Post
    Same here, though our traffic is considerably lower today. I don't think we'll see the server stressed until 2015, maybe not until 2016.
    FTFY.

    ​sorry, couldn't resist.
    Every post is not every other post. - a wise man

  9. These 2 users like USAFChief's post and want to buy him/her a steak dinner:

    ChiTownTwinsFan (04-01-2014), Willihammer (04-01-2014)

  10. #8
    Senior Member All-Star
    Posts
    1,616
    Like
    3
    Liked 320 Times in 202 Posts
    Blog Entries
    1
    I am using the mobile forums interface. Any chance this server-side caching could be throwing off how threads are marked read/unread and where the "goto=newpost" links go?

    I noticed this morning that some threads last updated Saturday were marked as unread for me, even though I know I read them through the last post. And other threads, when I clicked on the "goto=newpost" link for them, it took me to posts I had already read last night.

    I am accessing across multiple devices and browsers (desktop Safari/Firefox, mobile Android/Chrome) -- maybe that is the source of the trouble? At this very moment, my "read" threads on my phone and desktop do not match. I am logged in and have cleared browser cache on both, and am refreshing the main forum thread list pages.

    Not a huge deal, but I loved how this feature worked before.

    EDIT TO ADD: Seems to have settled down on my desktop now, although if I log in with my phone at this moment, none of my activity from the past few hours is apparent in the unread threads / new posts. So the delay could be when switching devices? I guess I was using my phone last night, and desktop this morning...

    UPDATE: Definitely seems tied to devices. On my desktop now, it is showing as new/unread all the things I caught up on earlier using my phone (again, logged in on both).
    Last edited by spycake; 04-08-2014 at 10:36 AM.

  11. #9
    Owner MVP Brock Beauchamp's Avatar
    Posts
    8,105
    Twitter
    @rocketpig76
    Like
    48
    Liked 1,585 Times in 823 Posts
    Blog Entries
    6
    That's strange. I have read/unread stored in the database. What device you're using shouldn't matter because the server is pulling info from the database according to your user id.

    I'll look into it.

  12. #10
    Senior Member All-Star
    Posts
    1,616
    Like
    3
    Liked 320 Times in 202 Posts
    Blog Entries
    1
    Quote Originally Posted by Brock Beauchamp View Post
    That's strange. I have read/unread stored in the database. What device you're using shouldn't matter because the server is pulling info from the database according to your user id.

    I'll look into it.
    The past few days, I've been in sync between my desktop and one of my mobile devices. But today I just noticed another of my mobile devices showed I wasn't logged in to TD anymore ("+" icon in top right corner)... but unread threads were still bolded, and the "goto=newpost" links were correctly picking up where I had left off on this device before (not just going to the last post of a thread, which seems to be the default behavior for logged out browsers). Perhaps read/unread can also be stored and retrieved by cookie, separate from logged in user?

    Even now that I've logged in on this mobile device, there seems to some residual sync issue. I still have a thread marked read on my mobile device from when I was apparently not logged in, but the same thread is still marked unread on my desktop computer, even after logging out and logging back in on both devices (same account on all devices, obviously).

    But new stuff is syncing fine again. Sorry to bother!

  13. #11
    Owner MVP Brock Beauchamp's Avatar
    Posts
    8,105
    Twitter
    @rocketpig76
    Like
    48
    Liked 1,585 Times in 823 Posts
    Blog Entries
    6
    Quote Originally Posted by spycake View Post
    The past few days, I've been in sync between my desktop and one of my mobile devices. But today I just noticed another of my mobile devices showed I wasn't logged in to TD anymore ("+" icon in top right corner)... but unread threads were still bolded, and the "goto=newpost" links were correctly picking up where I had left off on this device before (not just going to the last post of a thread, which seems to be the default behavior for logged out browsers). Perhaps read/unread can also be stored and retrieved by cookie, separate from logged in user?

    Even now that I've logged in on this mobile device, there seems to some residual sync issue. I still have a thread marked read on my mobile device from when I was apparently not logged in, but the same thread is still marked unread on my desktop computer, even after logging out and logging back in on both devices (same account on all devices, obviously).

    But new stuff is syncing fine again. Sorry to bother!
    Yeah, if the user is not logged in, the device will resort to using local cookies in place of the database tables.

  14. #12
    Twins Moderator All-Star diehardtwinsfan's Avatar
    Posts
    4,368
    Like
    413
    Liked 810 Times in 510 Posts
    Blog Entries
    3
    Quote Originally Posted by Brock Beauchamp View Post
    between 9am-11am Central time.
    I'm sure our bosses all love this.

  15. #13
    Owner MVP Brock Beauchamp's Avatar
    Posts
    8,105
    Twitter
    @rocketpig76
    Like
    48
    Liked 1,585 Times in 823 Posts
    Blog Entries
    6
    Having a bunch of technical difficulties this morning, trying to find the cause right now.

  16. #14
    Twins Moderator All-Star ChiTownTwinsFan's Avatar
    Posts
    4,813
    Twitter
    @Sheradoodles
    Like
    1,416
    Liked 1,927 Times in 1,129 Posts
    Did we lose a day's worth of posts in that mishap?

  17. #15
    Owner MVP Brock Beauchamp's Avatar
    Posts
    8,105
    Twitter
    @rocketpig76
    Like
    48
    Liked 1,585 Times in 823 Posts
    Blog Entries
    6
    Quote Originally Posted by ChiTownTwinsFan View Post
    Did we lose a day's worth of posts in that mishap?
    Yep. That was realization #178 in my night of hell. I backed up everything before taking down the server but my backup errored out just moments before completion, buggering the entire database.

    I could have salvaged some of the posts but said "To hell with it, I need to finish this before morning" and ran with what I had backed up from an earlier build.

    So we lost a couple hundred posts.

  18. #16
    Twins Moderator All-Star ChiTownTwinsFan's Avatar
    Posts
    4,813
    Twitter
    @Sheradoodles
    Like
    1,416
    Liked 1,927 Times in 1,129 Posts
    Ugh. Glad I don't have your job, but thanks for getting us back up.

  19. This user likes ChiTownTwinsFan's post and wants to buy him/her a steak dinner:

    USAFChief (04-22-2014)

  20. #17
    Twins Moderator MVP ashburyjohn's Avatar
    Posts
    8,678
    Like
    2,653
    Liked 3,302 Times in 1,753 Posts
    Blog Entries
    28
    Quote Originally Posted by Brock Beauchamp View Post
    So we lost a couple hundred posts.
    Future generations of archivists studying early twenty-first century America will curse you.

  21. #18
    Twins Moderator All-Star ChiTownTwinsFan's Avatar
    Posts
    4,813
    Twitter
    @Sheradoodles
    Like
    1,416
    Liked 1,927 Times in 1,129 Posts
    Being hit with lots of slowness ... especially annoying when trying to move and post threads.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
©2014 TwinsCentric, LLC. All Rights Reserved.
Interested in advertising with Twins Daily? Click here.