Don't fork worker on frontend by default

This commit is contained in:
Michael Vogel 2019-08-08 22:42:12 +02:00
commit 35a487ae30
2 changed files with 3 additions and 2 deletions

View file

@ -835,7 +835,7 @@ function item_post(App $a) {
// When we are doing some forum posting via ! we have to start the notifier manually.
// These kind of posts don't initiate the notifier call in the item class.
if ($only_to_forum) {
Worker::add(PRIORITY_HIGH, "Notifier", Delivery::POST, $post_id);
Worker::add(['priority' => PRIORITY_HIGH, 'dont_fork' => false], "Notifier", Delivery::POST, $post_id);
}
Logger::log('post_complete');