mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:45:55 +00:00
add cleanup_tags/purge orphans to globalUpdateFeeds and simple update
rpc call (closes #636)
This commit is contained in:
@@ -349,6 +349,18 @@ class Handler_Public extends Handler {
|
|||||||
include "rssfuncs.php";
|
include "rssfuncs.php";
|
||||||
// Update all feeds needing a update.
|
// Update all feeds needing a update.
|
||||||
update_daemon_common($this->link, 0, true, false);
|
update_daemon_common($this->link, 0, true, false);
|
||||||
|
|
||||||
|
// Update feedbrowser
|
||||||
|
update_feedbrowser_cache($this->link);
|
||||||
|
|
||||||
|
// Purge orphans and cleanup tags
|
||||||
|
purge_orphans($this->link);
|
||||||
|
|
||||||
|
cleanup_tags($this->link, 14, 50000);
|
||||||
|
|
||||||
|
global $pluginhost;
|
||||||
|
$pluginhost->run_hooks($pluginhost::HOOK_UPDATE_TASK, "hook_update_task", $op);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function sharepopup() {
|
function sharepopup() {
|
||||||
|
|||||||
@@ -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) {
|
if ($num_updated > 0) {
|
||||||
print json_encode(array("message" => "UPDATE_COUNTERS",
|
print json_encode(array("message" => "UPDATE_COUNTERS",
|
||||||
"num_updated" => $num_updated));
|
"num_updated" => $num_updated));
|
||||||
|
|||||||
Reference in New Issue
Block a user