From cda55d67d0fffa4751e8377b2b4e3a0a522397c5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Mar 2013 08:19:28 +0400 Subject: add cleanup_tags/purge orphans to globalUpdateFeeds and simple update rpc call (closes #636) --- classes/rpc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes/rpc.php') 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)); -- cgit v1.2.3-54-g00ecf