summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-13 19:59:42 +0300
committerAndrew Dolgov <[email protected]>2010-11-13 19:59:42 +0300
commit868650e463d5803006fabad47931ca5797ba250c (patch)
treea87d73248ad514411e3f43f18d90a3835debff7f /update.php
parentd3204726a56471bf8f7add5fd38db6dd149fb022 (diff)
implement automatic tags table maintenance
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/update.php b/update.php
index 64b5795fa..ac1d84c8e 100755
--- a/update.php
+++ b/update.php
@@ -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");