proc_run was replaced
This commit is contained in:
parent
da212a28a2
commit
478e363967
41 changed files with 167 additions and 157 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue