paulirish/infinite-scroll — pull request #167 by benbalter (2012-05-18 22:33:49+00:00)
Title: Reduce preset ttl to 86000 to ensure daily cron *always* refreshes the cache

The preset TTL was set to *exactly* one day. Assuming the WordPress daily cron fires *exactly* every 86000 seconds, because there's going to be a lag as the server makes the HTTP request, the cache won't actually be set until a few seconds (or at least one) after that, thus 86000 later (when cron fires again), the cache will (in theory) still be valid (until say 86001 seconds from when the previous cron fired).

Reduced TTL to 86000 (arbitrary, but approx. 6 minutes less than a full day) to ensure cache is always invalid when cron fires.

May make sense to look into using [TLC Transients](https://github.com/markjaquith/WP-TLC-Transients) as a wrapper for WordPress's native transient functionality to ensure that even if Cron doesn't fire for whatever reason, user isn't delayed as presets are fetched on option screen (old presets would be served while new is fetched in background).