Four different faults get called by each other's names, and they need four different fixes, so it is worth being precise about which one you have before changing anything.
Patchy is uneven density: some areas carrying more product than others, often with visible edges between them, right from the moment of application. Cakey is uniform thickness that reads as a layer. Separating is a base that was even and then split into zones through the day. Settling is product collecting in lines. If yours looks wrong immediately rather than three hours later, it is patchy, and this is the right page — the others are on how to stop makeup looking cakey over 60 and how to stop foundation separating on mature skin.
Patchiness is an adhesion problem. Foundation needs a surface it can bond to evenly. Where the surface is dry, shedding, still wet with skincare, or already coated in something slick, the product either refuses to stick or sticks too well, and the result is density variation — which is exactly what patchy looks like.
Which is why the primer does not fix it, and why so many people search for this phrase with "even with primer" attached. A primer is another layer on the same surface. If the surface is flaking, the primer sits on the flakes; if the skincare underneath has not absorbed, the primer floats on it. Adding a layer to an unstable foundation does not stabilize it.
There are five causes worth knowing, and they are easy to tell apart. Dry or flaking areas give you patches in the same places every time. Unabsorbed skincare gives you patchiness that shifts around. A loaded sponge gives you streaky, dense marks. A mismatched or oxidizing shade gives you patchiness that is really a color difference. And an over-exfoliated or compromised barrier gives you patchiness that arrived with a new skincare product.
What to look for in the products, then. A primer or base layer that hydrates rather than fills, because hydration addresses the actual cause; a thin, flexible base that does not need to be forced into an uneven surface; and a clean tool that presses rather than drags. Nothing here is expensive, and two of the five fixes cost nothing at all.