I'm not sold on cake having anything to do with staying lit
+++1
Cake is great for a birthday party, but not essential to keeping a pipe lit. As others have stated, it's packing, cadence, proper moisture level in the tobacco, and knowing your pipe.
With my favorite pipes I can place a lit pipe in my pocket for 10 minutes if I need to pop into a store to pick up something, and have it going with a couple of draws when I'm back in the open, with no relight. Some pipes just don't stay lit. But relighting isn't an issue for me. I smoke for pleasure and relaxation, not to prove anything.