From b4bef02c08a3bc8198f97d0e97701981f9bb85c8 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 24 Oct 2009 11:41:51 +0200 Subject: 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. --- lib/Multi/Maintenance.pm | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3