Fix cached definition change detection

LMS-11485

@doctoryes @cpennington plz review