Writing on the web.
Engineering diaries, system optimizations, and architectural patterns from building high-traffic plugins and backend systems.
Building Lightweight Headless API Auth Middleware in Laravel
TutorialIf you are building a headless project and only need simple JWT token validation, pulling in Laravel Passport or Sanctum might be overkill. Here is how to write a custom authentication middleware.
Scaling WooCommerce: Optimizing Options Table Queries on High-Traffic Sites
TutorialWhen a WooCommerce store scales to thousands of orders per day, the wp_options table is often the first bottleneck. Here is a guide to auditing autoloaded options, query tuning, and cache configurations.
How to Add WooCommerce Checkout Fee for a Payment Gateway
TutorialSometimes, it is necessary to add a Transaction or Checkout Fee on the WooCommerce Checkout page if you want to charge a specific amount from your customer as payment gateway charges. Here's a simple PHP snippet to add a fee to the checkout for every payment or for a specific payment gateway.