mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 13:24:56 +01:00
Merged from MOODLE_14_STABLE - More efficient SQL UPDATE in forum_mark_old_posts_as_mailed() -- improves performance under PostgreSQL.
This commit is contained in:
parent
0418487beb
commit
0362d553eb
@ -1081,7 +1081,7 @@ function forum_mark_old_posts_as_mailed($endtime) {
|
|||||||
global $CFG;
|
global $CFG;
|
||||||
return execute_sql("UPDATE {$CFG->prefix}forum_posts
|
return execute_sql("UPDATE {$CFG->prefix}forum_posts
|
||||||
SET mailed = '1'
|
SET mailed = '1'
|
||||||
WHERE created < '$endtime'");
|
WHERE created < '$endtime' AND mailed ='0'");
|
||||||
}
|
}
|
||||||
|
|
||||||
function forum_get_user_posts($forumid, $userid) {
|
function forum_get_user_posts($forumid, $userid) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user