Skip to content

Commit

Permalink
MDL-20625 forbid transactions when sending messages - we can not undo…
Browse files Browse the repository at this point in the history
… emails
  • Loading branch information
skodak committed Nov 7, 2009
1 parent 7c7d3af commit e484041
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/messagelib.php
Expand Up @@ -46,7 +46,9 @@ function message_send($eventdata) {

//TODO: this function is very slow and inefficient, it would be a major bottleneck in cron processing, this has to be improved in 2.0
// probably we could add two parameters with user messaging preferences and we could somehow preload/cache them in cron
//TODO: we need to solve problems with database transactions here somehow

//TODO: we need to solve problems with database transactions here somehow, for now we just prevent transactions - sorry
$DB->transactions_forbidden();

if (isset($CFG->block_online_users_timetosee)) {
$timetoshowusers = $CFG->block_online_users_timetosee * 60;
Expand Down

0 comments on commit e484041

Please sign in to comment.