Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-74321 mod_forum: forum_check_throttling performance improvements
* Return early if the forum's blockafter or blockperiod attributes are empty. * If $cm is not passed in forum_check_throttling(), try to fetch it using get_fast_modinfo() which avoids DB reads. Fetch it via get_coursemodule_from_instance() as a last resort (though it's unlikely to happen).
- Loading branch information