When a user does something in RISE (creates a task, adds a comment, sends an invoice and so on), RISE creates notifications and sends notification emails. To keep the app fast, this work runs in the background. You can choose how this background work runs.
When to change it
Change it only if you see one of these problems:
- Web notifications are not created.
- Notification emails are not sent, but the test email from Settings works.
- The log file (writable/logs) shows "CURL error on log_notification".
This happens on some servers that block requests from the server to itself. For example: a firewall, a load balancer, Cloudflare, a password protected folder, or an SSL certificate the server itself does not trust.
How to change it
Open the file app/Config/App.php and add this line before the last closing bracket } of the file:
public $notification_processing_mode = "after_response";
You can use one of these values. If the line is not there, RISE chooses by itself: after_response on PHP-FPM and LiteSpeed servers and for cron jobs, curl on other servers. If the curl request can not reach the server, RISE creates the notifications in the same request.
| Value | How it works |
| curl | RISE sends a background request to itself. The user does not wait. |
| after_response | Recommended if curl does not work. RISE first sends the page to the user, then creates the notifications in the same request. No request to itself is needed. On most servers (PHP-FPM, LiteSpeed) the user does not wait. On other servers it works like "direct". |
| direct | RISE creates the notifications before it sends the page. Works on every server, but saving can be slower when many emails are sent. |
Save the file, then create a task or a comment to check the notifications.