summaryrefslogtreecommitdiff
path: root/classes/rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 08:19:28 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 08:19:31 +0400
commitcda55d67d0fffa4751e8377b2b4e3a0a522397c5 (patch)
treefe752a68facb0bf66d989428a8bc6a8845d0f5fe /classes/rpc.php
parent0196ef94f46243ede3235655f921a84fa336097e (diff)
add cleanup_tags/purge orphans to globalUpdateFeeds and simple update
rpc call (closes #636)
Diffstat (limited to 'classes/rpc.php')
-rw-r--r--classes/rpc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/rpc.php b/classes/rpc.php
index eb241591b..72028759e 100644
--- a/classes/rpc.php
+++ b/classes/rpc.php
@@ -735,6 +735,10 @@ class RPC extends Handler_Protected {
}
}
+ // Purge orphans and cleanup tags
+ purge_orphans($this->link);
+ cleanup_tags($this->link, 14, 50000);
+
if ($num_updated > 0) {
print json_encode(array("message" => "UPDATE_COUNTERS",
"num_updated" => $num_updated));