X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbclean.php;h=1e1dd908290ec045cd8166b7b0565210116e243f;hb=478e363967165980eb826e8d109dd15770e2c784;hp=bc41bead2d31841cb474c50c3b5a3093da0b144c;hpb=4e49939421d39dfa971d8744691568bcdbdca15e;p=friendica.git diff --git a/include/dbclean.php b/include/dbclean.php index bc41bead2d..1e1dd90829 100644 --- a/include/dbclean.php +++ b/include/dbclean.php @@ -5,6 +5,7 @@ */ use Friendica\Core\Config; +use Friendica\Core\Worker; function dbclean_run(&$argv, &$argc) { if (!Config::get('system', 'dbclean', false)) { @@ -25,7 +26,7 @@ function dbclean_run(&$argv, &$argc) { // Execute the background script for a step when it isn't finished. // Execute step 8 and 9 only when $days is defined. if (!Config::get('system', 'finished-dbclean-'.$i, false) && (($i < 8) || ($days > 0))) { - proc_run(PRIORITY_LOW, 'include/dbclean.php', $i); + Worker::add(PRIORITY_LOW, 'dbclean', $i); } } } else { @@ -297,6 +298,6 @@ function remove_orphans($stage = 0) { // Call it again if not all entries were purged if (($stage != 0) && ($count > 0)) { - proc_run(PRIORITY_MEDIUM, 'include/dbclean.php'); + Worker::add(PRIORITY_MEDIUM, 'dbclean'); } }