diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-07-09 06:24:14 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-07-09 06:24:14 +0000 |
commit | 69cc216f416c78f6bb5b25fcfd17a75aab5f9a87 (patch) | |
tree | 01d118a1bd66902e5c41134943db6e131d7cdfe3 /lib/Multi/Maintenance.pm | |
parent | 329729db62636b8355d5c12e66e8cb58e3a50928 (diff) |
Added possibility to create a hidden thread and removed ratings calculation from Multi
git-svn-id: svn://vndb.org/vndb@63 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib/Multi/Maintenance.pm')
-rw-r--r-- | lib/Multi/Maintenance.pm | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/Multi/Maintenance.pm b/lib/Multi/Maintenance.pm index 93734473..f2170deb 100644 --- a/lib/Multi/Maintenance.pm +++ b/lib/Multi/Maintenance.pm @@ -26,10 +26,10 @@ sub spawn { sub _start { $_[KERNEL]->alias_set('maintenance'); - $_[KERNEL]->call(core => register => qr/^maintenance((?: (?:vncache|ratings|revcache|integrity|unkanime|logrotate))+)$/, 'cmd_maintenance'); + $_[KERNEL]->call(core => register => qr/^maintenance((?: (?:vncache|revcache|integrity|unkanime|logrotate))+)$/, 'cmd_maintenance'); # Perform some maintenance functions every day on 0:00 - $_[KERNEL]->post(core => addcron => '0 0 * * *', 'maintenance vncache ratings integrity unkanime'); + $_[KERNEL]->post(core => addcron => '0 0 * * *', 'maintenance vncache integrity unkanime'); # update caches and rotate logs every 1st day of the month at 0:05 $_[KERNEL]->post(core => addcron => '5 0 1 * *' => 'maintenance revcache logrotate'); } @@ -49,12 +49,6 @@ sub vncache { } -sub ratings { - $_[KERNEL]->call(core => log => 3 => 'Recalculating VN ratings...'); - $Multi::SQL->do('SELECT calculate_rating()'); -} - - sub revcache { $_[KERNEL]->call(core => log => 3 => 'Updating rev column in the changes table...'); # this can take a while, maybe split these up in 3 queries? |