cashmusic/DIY — Issue #107: Speed up feed cache
Author: jessevondoom
Created: 2011-10-09 20:44:13+00:00
State: open
Labels: core

The cache itself isn't the issue — flat JSON files are nice and quick — the issue is retrieval of the feeds themselves. A couple ideas:

- Move to a garbage collection model. Cached feeds over 12 minutes of age get an x% chance of being refreshed, increasing until 16 minutes where they force a refresh
- Set the feed refresh to happen after the buffer is flushed so it doesn't affect the load sent down to the browser
- Spawn a child process to handle the feed refresh after the cache is loaded into memory. Iffy. Child processes piss off some shared hosts so this adds a level of complexity...