Fix ModuleFrameworkImpl cache logic