Fix cached definition change detection

LMS-11485

@doctoryes @cpennington plz review
Should this just be an option on `CourseFactory`?