fixed logic bug in check_minion_cache