MDL-40830 Clear course cache in mod_assign generator