Your browser sends the WordPress login cookie with every request to your site. Yet a plain fetch(‘/wp-json/wp/v2/users/me’) from a logged-in page still comes back as a logged-out visitor. The missing piece is the nonce, and it’s the whole point of how cookie auth works in the REST API. I kept asking “but what actually happens?”… Continue reading Cookies, Nonces and the WordPress REST API
Category: Enterprise
The silent bug that turned a fast page into a slow one
A bug on the homepage surfaced recently – the kind that’s easy to write by accident and easy to miss in review: the page pre-rendered its data at build time, then threw that data away and fetched it again in the browser. This post walks through what the bug looked like, why it hurts performance,… Continue reading The silent bug that turned a fast page into a slow one
Optimize WP_Query Performance: Skipping Meta Cache Priming the Right Way
If you’ve profiled a WordPress archive page with Query Monitor, you’ve probably seen this pattern without knowing what it was: Two queries, back to back, for the exact same batch of post IDs. One fetches the posts. The second – often slower, despite doing “less” – fetches metadata nobody asked for. That second query is… Continue reading Optimize WP_Query Performance: Skipping Meta Cache Priming the Right Way
Enterprise WordPress Performance: Smarter postmeta Key Design
Every WordPress developer has written a WP_Query with a meta_query argument. It feels natural. But at enterprise scale — hundreds of thousands of posts, millions of rows in wp_postmeta — those queries become some of the heaviest load your database carries. The good news: a significant slice of that cost is avoidable with a shift… Continue reading Enterprise WordPress Performance: Smarter postmeta Key Design
WordPress Performance Optimization: 15 Hooks Every Enterprise Developer Should Know
If you’ve worked on enterprise WordPress for any length of time, you already know the truth: performance problems rarely come from one big bottleneck. They come from a hundred small ones stacked on top of each other — an unindexed meta query here, a Heartbeat request every 15 seconds there, an unnecessary found_posts count on… Continue reading WordPress Performance Optimization: 15 Hooks Every Enterprise Developer Should Know