mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:50:11 +00:00
CSR changes, split dbclean in separate processes if worker is active
This commit is contained in:
parent
31409e2ca1
commit
b429b85680
10 changed files with 592 additions and 589 deletions
|
@ -126,7 +126,14 @@ function cron_run(&$argv, &$argc){
|
|||
|
||||
proc_run(PRIORITY_LOW,'include/expire.php');
|
||||
|
||||
proc_run(PRIORITY_LOW,'include/dbclean.php');
|
||||
if (get_config("system", "worker")) {
|
||||
proc_run(PRIORITY_LOW,'include/dbclean.php', 1);
|
||||
proc_run(PRIORITY_LOW,'include/dbclean.php', 2);
|
||||
proc_run(PRIORITY_LOW,'include/dbclean.php', 3);
|
||||
proc_run(PRIORITY_LOW,'include/dbclean.php', 4);
|
||||
} else {
|
||||
proc_run(PRIORITY_LOW,'include/dbclean.php');
|
||||
}
|
||||
}
|
||||
|
||||
// Clear cache entries
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue