freshenup.pl gets its list of which article.pl stories
to update at the top of the minute, and then typically
runs index.pl about a minute later. This can result in
an index.shtml that points to a story's .shtml file
that hasn't yet been written and won't be written for 3
to 4 minutes. Many 404s can result during that time.
Since stories' .shtml files need to be written first to
update hitparade counts for index.shtml, they have to
be run in that order. The only really good way to make
sure this doesn't happen is to feed index.pl a "pretend
time" -- make its call to getEssentialStories() and
whatever else pretend that it's really back at the top
of the minute when freshenup.pl built its list of which
article.pl calls to make.
Log in to post a comment.