Forums | Mahara Community

Developers /
Notifying users


anonymous profile picture
Account deleted
Posts: 41

25 February 2012, 6:27

Hello,

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:

Require_once('activity.php');

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: 4744

25 February 2012, 19:29

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.

Cheers

Kristina

anonymous profile picture
Account deleted
Posts: 808

19 March 2012, 17:27

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