imulus/powder — Issue #2: On-demand caching vs. cache job
Author: caseyohara
Created: 2011-12-27 04:07:39+00:00
State: open

The Sinatra app has a tiny cache for the feed data to make requests more speedy for the user. It's set for a 3 hour expiration to keep it fresh, but unfortunately the first user to hit it has to wait while the cache rebuilds. After that it's fast as shit.

What's involved in setting up a background job to automatically rebuild the cache so we don't have to rely on a web request to kick one off?