remove synchronous usages of _purge_orphans()
This commit is contained in:
@@ -82,8 +82,6 @@ class RPC extends Handler_Protected {
|
||||
WHERE ref_id IN ($ids_qmarks) AND owner_uid = ?");
|
||||
$sth->execute([...$ids, $_SESSION['uid']]);
|
||||
|
||||
Article::_purge_orphans();
|
||||
|
||||
print json_encode(array("message" => "UPDATE_COUNTERS"));
|
||||
}
|
||||
|
||||
@@ -311,10 +309,6 @@ class RPC extends Handler_Protected {
|
||||
}
|
||||
}
|
||||
|
||||
// Purge orphans and cleanup tags
|
||||
Article::_purge_orphans();
|
||||
//cleanup_tags(14, 50000);
|
||||
|
||||
if ($num_updated > 0) {
|
||||
print json_encode(array("message" => "UPDATE_COUNTERS",
|
||||
"num_updated" => $num_updated));
|
||||
|
||||
@@ -1721,7 +1721,9 @@ class RSSUtils {
|
||||
|
||||
PluginHost::getInstance()->add_scheduled_task('purge_orphans', '@daily',
|
||||
function() {
|
||||
Article::_purge_orphans(); return 0;
|
||||
Article::_purge_orphans();
|
||||
|
||||
return 0;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user