Permalink
Browse files

Run less often to reduce how often the query cache is nuked.

  • Loading branch information...
jamiemccarthy committed Jul 19, 2004
1 parent 09208c7 commit 331deea987851ab415e1d5d0e642e14af9ae5bde
Showing with 1 addition and 3 deletions.
  1. +1 −3 themes/slashcode/tasks/counthits.pl
@@ -17,7 +17,7 @@
(my $VERSION) = ' $Revision$ ' =~ /\$Revision:\s+([^\s]+)/;
# Change this var to change how often the task runs.
-$minutes_run = 6;
+$minutes_run = 20;
# Adjust this to maximize how big of a SELECT we'll do on the log DB.
# (5000 per minute (above) is probably safe, 10000 per minute just to
@@ -106,8 +106,6 @@
);
$total_hits += $sid_count{$sid};
_update_timehash("update");
- Time::HiRes::sleep(0.02);
- _update_timehash("sleep");
}
$slashdb->setVar("counthits_lastmaxid", $newmaxid);

0 comments on commit 331deea

Please sign in to comment.