1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

implement automatic tags table maintenance

This commit is contained in:
Andrew Dolgov
2010-11-13 19:59:42 +03:00
parent d3204726a5
commit 868650e463
2 changed files with 28 additions and 0 deletions
+6
View File
@@ -19,6 +19,7 @@
print " -feeds - update feeds\n";
print " -feedbrowser - update feedbrowser\n";
print " -daemon - start single-process update daemon\n";
print " -cleanup-tags - perform tags table maintenance\n";
print " -help - show this help\n";
return;
}
@@ -89,6 +90,11 @@
}
if ($op == "-cleanup-tags") {
$rc = cleanup_tags($link, 14, 50000);
print "$rc tags deleted.\n";
}
db_close($link);
unlink(LOCK_DIRECTORY . "/$lock_filename");