mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
Some improvements in efficiency of Recent Activity.
There is now a new field in forum_discussions which has the userid of the author in it. This saves a lookup every time to forum_posts. There is also some caching and rearrangement of the logic. It seems to work OK, I'm about to do some speed tests on moodle.org
This commit is contained in:
parent
da8079852c
commit
d05956ac9f
8 changed files with 80 additions and 19 deletions
|
@ -128,6 +128,7 @@
|
|||
fwrite ($bf,full_tag("ID",6,false,$for_dis->id));
|
||||
fwrite ($bf,full_tag("NAME",6,false,$for_dis->name));
|
||||
fwrite ($bf,full_tag("FIRSTPOST",6,false,$for_dis->firstpost));
|
||||
fwrite ($bf,full_tag("USERID",6,false,$for_dis->userid));
|
||||
fwrite ($bf,full_tag("ASSESSED",6,false,$for_dis->assessed));
|
||||
fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$for_dis->timemodified));
|
||||
//Now print posts to xml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue