Forums | Mahara Community

Developers /
Notifying users

anonymous profile picture
Deleted user
Posts: 41

25 February 2012, 6:27 AM


Regarding notifying users, it seems like the site goes into a small lag in response while it sends the emails. Is there a viable solution for the problem built inside mahara like email digest (since we noticed that it works on queue activated by cron).

We also noticed the existence of activity queue table which meant to handle notifications and messages. Can you please explain how we can utilize these facilities with the custom modules and messages we have built?

We are already using:


Activity_occurred('maharamessage', $msg);

Handle_event('maharamessage', null);

We noticed that the emails are sent directly to the users without using queue/cron?

Best regards

Abu Musa

Kristina Hoeppner's profile picture
Posts: 3864

25 February 2012, 7:29 PM

Hello Abu Musa,

Yes, Mahara has the email digest option and you can turn it on for each type of notification individually. You find them in Mahara 1.4 under Settings (right top corner) -> Notifications.

Many notifications run on cron but direct messages are sent immediately.



anonymous profile picture
Deleted user
Posts: 808

19 March 2012, 5:27 PM

Hi Mohammad, if you have a look at the definition of the activity_occurred function you'll see that you can pass a 'delay' argument along that will force it to queue the notifications.

3 results