]> git.mjollnir.org Git - moodle.git/commit
mod/chat: reduce number of queries in cron.
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:20:52 +0000 (07:20 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:20:52 +0000 (07:20 +0000)
commitb78f4cbd31b5cfea3cddfea0b39891b785a34156
tree6886c47d180260e53982e05f622cf6bd08737b90
parent1a9b67874fe7300f7820eb664a25d48f3f5f6f7d
mod/chat: reduce number of queries in cron.

Delete stale msgs in one DB query rather than in 1-per-chat-instance.

(From 600 DB queries to 1 on a site with 600 chat instances.)

Also - a walkthrough of chat_update_chat_times(), which seems buggy.
mod/chat/lib.php