34dd57053d
Whenever the role_capabilities table is changed, we need to remember to clear the cache for the role(s) being modified. This is far simpler when all of those changes happen in a single file, i.e. accesslib.php, allowing other parts of the application to use the public functions without requiring knowledge of the cache internals.