close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#53 closed enhancement (fixed)

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 (5)

comment:1 Changed 15 years ago by ajanata

  • Milestone changed from time_t overflow to January 2010

comment:2 Changed 14 years ago by ajanata

  • Milestone changed from January 2010 to Rock Band 3 Release

comment:3 Changed 14 years ago by ajanata

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

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 14 years ago by wwwedit

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

(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 14 years ago by ajanata

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

Note: See TracTickets for help on using tickets.