Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 331deea987851ab415e1d5d0e642e14af9ae5bde 1 parent 09208c7
@jamiemccarthy jamiemccarthy authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 themes/slashcode/tasks/counthits.pl
View
4 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);
Please sign in to comment.
Something went wrong with that request. Please try again.