Skip to content

Commit

Permalink
Take bigger bites of rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccarthy committed Nov 22, 2004
1 parent 90737f7 commit ce62616
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions themes/slashcode/tasks/freshenup.pl
Expand Up @@ -85,12 +85,13 @@
# while we do them piecemeal. So instead, we try to take a
# big bite out of what needs to be done while there are stories
# within the latest 1000 that need this, and then afterwards,
# take a smaller bite every 10 minutes at a do_all.
# take a smaller bite every 10 minutes at a do_all. These
# actually get processed pretty fast.
$stories = $slashdb->getSRDsWithinLatest(1000);
if (!@$stories) {
if ($do_all) {
# Try the smaller bite.
$stories = $slashdb->getSRDs(20);
$stories = $slashdb->getSRDs($max_stories);
} else {
# Either there's nothing to be done or there's
# nothing urgent enough to be done. Leave the
Expand Down

0 comments on commit ce62616

Please sign in to comment.