MDL-39462 added missing clearing of coursecat cache