Performance
Tools to validate your website
Before and after you launch, a handful of free tools tell you whether your site is secure, fast, and correctly configured. Here are the ones worth running.
How to enable and configure OPcache for faster PHP
OPcache caches compiled PHP bytecode so your code skips recompilation on every request. Here is how to enable and tune OPcache for a real production server.
A complete guide to caching in Laravel
The Laravel cache gives you one API in front of file, Redis, database, and memcached stores. Here is how to configure drivers, cache slow queries, invalidate by tag, and clear it all.
How database indexing works (with MySQL examples)
An index is the single biggest lever you have on query speed. Here is what a database index actually is, how it works under the hood, and how to add the right ones in MySQL.
Brotli vs Gzip: which compression should you use?
Brotli vs Gzip is the practical choice for compressing text responses. Here is how the two differ on ratio, speed, and support, and which one to serve.
How to optimize MySQL performance
A practical guide to MySQL performance tuning that starts with measurement, then covers indexes, the InnoDB buffer pool, connections, and server resources.
How to clear the Redis cache
A practical guide to clear the Redis cache, from flushing a single database with redis-cli to safely deleting keys by pattern and clearing the cache from Laravel.
How to enable Gzip and Brotli compression in Nginx
Learn how to enable Gzip compression in Nginx (and add Brotli) to shrink text assets and speed up page loads, with real config and verification commands.
How to improve Laravel performance
Laravel performance is mostly a configuration problem. Here are the production caches, queue offloading, and server tweaks that give you the biggest speedups for the least effort.
How to find and optimize slow MySQL queries
A repeatable process for MySQL query optimization, find slow MySQL queries with the slow query log, diagnose them with EXPLAIN, and fix them with the right indexes and query rewrites.
How to increase the PHP memory limit
The PHP memory limit caps how much memory a single script can use. Here is how to check it, find the right php.ini, and raise it safely for CLI, FPM, and per-app cases.
How to measure TTFB (Time To First Byte)
TTFB is one of the most important metrics to measure your website or webapp performance. Because only after the first byte the browser can begin to render it.
How to optimize server performance
Server performance is determinded by a lot of moving parts inside your server. Lets dig in on every aspect that can make a big difference.
How to optimize website performance
Learn how to improve your website or web app performance by leveraging different techniques that optimize the loading speed drastically for your users.