By analyzing plant remains in the cave, Humphrey's team found that residents ate lots of a particularly sweet type of acorn, which becomes soft and sticky when cooked. They also ate wild oats and legumes. Such foods can lead to serious decay,
Plus another link in this thread claims ancient fruits have different sugars that don’t cause decay.