]> git.mjollnir.org Git - moodle.git/commit
Auto-linking filters: fix serious caching bug in forum mailouts
authormartinlanghoff <martinlanghoff>
Mon, 19 Mar 2007 06:33:45 +0000 (06:33 +0000)
committermartinlanghoff <martinlanghoff>
Mon, 19 Mar 2007 06:33:45 +0000 (06:33 +0000)
commit9aa9080756186f8a8a62936d5b0aaf0440b62d2e
tree14d1f870512a3847b524b8ef6cafe87449e24dd9
parent8cf990bcfefc6726cb43394604c52f6d4c9fb455
Auto-linking filters: fix serious caching bug in forum mailouts

Autolinking of glossaries, activity, resources and wiki names were using a
trivial single-entry cache implemented with static vars. The cache was _not_
keyed on course.

This bug was visible during forum_cron() which walks many courses. The cache
would get "stuck" on the first course that had something to put in the cache.
All mailouts from there onwards would autolink to stuff in the wrong course.
filter/activitynames/filter.php
mod/glossary/filter.php
mod/resource/filter.php
mod/wiki/filter.php