summaryrefslogtreecommitdiff
path: root/lib/Multi
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-10-24 11:41:51 +0200
committerYorhel <git@yorhel.nl>2009-10-24 11:41:51 +0200
commitb4bef02c08a3bc8198f97d0e97701981f9bb85c8 (patch)
tree55229b0059cf56d8f00428844416d8b8f74a1ce9 /lib/Multi
parent56e691ac21163519392bb1711d173f4b52c24470 (diff)
Removed update_rev() function and monthly revcache cron
The changes.rev column should be correct in the first place, and in the (most likely) impossible condition that it isn't, the update_rev() function is more likely to make things worse.
Diffstat (limited to 'lib/Multi')
-rw-r--r--lib/Multi/Maintenance.pm12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/Multi/Maintenance.pm b/lib/Multi/Maintenance.pm
index 0bd5eb91..4f816e56 100644
--- a/lib/Multi/Maintenance.pm
+++ b/lib/Multi/Maintenance.pm
@@ -18,12 +18,12 @@ sub spawn {
$p => [qw|
_start shutdown set_daily daily set_monthly monthly log_stats
vncache tagcache vnpopularity cleangraphs
- usercache statscache revcache logrotate
+ usercache statscache logrotate
|],
],
heap => {
daily => [qw|vncache tagcache vnpopularity cleangraphs|],
- monthly => [qw|usercache statscache revcache logrotate|],
+ monthly => [qw|usercache statscache logrotate|],
@_,
},
);
@@ -173,14 +173,6 @@ sub statscache {
}
-sub revcache {
- # This -really- shouldn't be necessary...
- # Currently takes about 25 seconds to complete
- $_[KERNEL]->post(pg => do => q|SELECT update_rev('vn', ''), update_rev('releases', ''), update_rev('producers', '')|,
- undef, 'log_stats', 'revcache');
-}
-
-
sub logrotate {
my $dir = sprintf '%s/old', $VNDB::M{log_dir};
mkdir $dir if !-d $dir;