After applying for the patent of olive moon cakes, are others not allowed to produce olive moon cakes?

That's not true.

After applying for a patent, others can still produce olive moon cakes, as long as the ingredients are different.

Patent refers to inventions protected by the patent law, that is, patented technology, which is a proprietary technology recognized by the state and protected by law on the basis of publicity.