]> git.mjollnir.org Git - moodle.git/commit
A little bit of caching for get_my_courses, related to MDL-8149
authormoodler <moodler>
Mon, 22 Jan 2007 03:24:27 +0000 (03:24 +0000)
committermoodler <moodler>
Mon, 22 Jan 2007 03:24:27 +0000 (03:24 +0000)
commit8e82745aeddeade05bb857d54972e7b0190c1266
tree6581e21e618f647ae46fc7be97d35e98ce5a992f
parentcaa90d5642310c8d99644ac94ca3fca7474b38fa
A little bit of caching for get_my_courses, related to MDL-8149

Resetting it in load_all_capabilities() means it gets flushed everytime
role_assign() or role_unassign() is called on the current user, which should
be enough.

The cache is not reset when others assign/unassign roles, but Moodle has
always had this problem.
lib/accesslib.php
lib/datalib.php