self::markForDeletion(['uri' => $item['uri'], 'deleted' => false], $priority);
// send the notification upstream/downstream
- Worker::add(['priority' => $priority, 'dont_fork' => true], "Notifier", Delivery::DELETION, intval($item['id']));
+ if ($priority) {
+ Worker::add(['priority' => $priority, 'dont_fork' => true], "Notifier", Delivery::DELETION, intval($item['id']));
+ }
} elseif ($item['uid'] != 0) {
Post\User::update($item['uri-id'], $item['uid'], ['hidden' => true]);
$expired = 0;
+ $priority = DI::config()->get('system', 'expire-notify-priority');
+
while ($item = Item::fetch($items)) {
// don't expire filed items
continue;
}
- self::markForDeletionById($item['id'], PRIORITY_LOW);
+ self::markForDeletionById($item['id'], $priority);
++$expired;
}
// restricts develop log writes to requests originating from this IP address.
'dlogip' => '',
+ // expire-notify-priority (integer)
+ // Priority for the expirary notification
+ 'expire-notify-priority' => PRIORITY_LOW,
+
// free_crawls (Integer)
// Number of "free" searches when system => permit_crawling is enabled.
'free_crawls' => 10,