| Trigger cache invalidations for entries published into the future.
This job is meant to be run at timed intervals, it will not do any
good to run this job only a single time.
We do things in a somewhat counterintuitive manner, but it makes things
easier on us from an operational point of view. We start by looking up
all entries published between now and some time XX mins in the future. We
then save that list and when XX mins has passed we invalidate the list and
query for entries published in the next XX mins.
Basically we are building a short term list of future published entries
and expiring them once our wait period is over. This prevents us from
having to somehow determine which entries published in the last XX mins
had previously been published into the future.
|