Ticket #53 (closed enhancement: fixed)

Opened 2 years ago

Last modified 18 months ago

Use APC to cache stream embed codes

Reported by: ajanata Owned by: ajanata
Priority: critical Milestone: August 2010
Component: SocialGamer Website Keywords: apc
Cc:

Description

Once we grab a stream embed code, we should store it in APC with apc_add so we don't have to hit justin.tv/ustream.tv servers every time. This should significantly improve streampage load times. This should probably cache for an hour or until the user edits their streampage (apc_delete).

Change History

comment:1 Changed 2 years ago by ajanata

  • Milestone changed from time_t overflow to January 2010

comment:2 Changed 19 months ago by ajanata

  • Milestone changed from January 2010 to Rock Band 3 Release

comment:3 Changed 18 months ago by ajanata

  • Priority changed from major to critical
  • Milestone changed from Rock Band 3 Release to August 2010

Bumping this up to this month because we seem to be hitting the Justin.tv API rate limiting occasionally. If we cache the embed codes, that would help that a bit. Probably not enough, though.

comment:4 Changed 18 months ago by wwwedit

  • Status changed from new to closed
  • Resolution set to fixed

(In [500]) ajanata: Cache all stream embed codes for 20 minutes. This is done in such a way that we don't have to remove it from the cache
if the user changes their stream settings. Dramatically speeds up homepage load time unless it's not in the cache. We may be
able to cache these for much longer than 20 minutes, because they should not change very often.

Fixes #53.

comment:5 Changed 18 months ago by ajanata

Changed embed code time-to-live to a day in r502.

Note: See TracTickets for help on using tickets.