Magento 2 Blackfire Profiling: Pages, CLI and Tests
Profile Magento 2 with Blackfire: probe and agent setup, profiling pages and bin/magento commands, reading call graphs and adding performance assertions.
23 articles
Profile Magento 2 with Blackfire: probe and agent setup, profiling pages and bin/magento commands, reading call graphs and adding performance assertions.
What each Magento 2 cache type stores, the real difference between cache:clean and cache:flush, invalidated caches, and how to add your own cache type.
Put a CDN in front of Magento 2: Fastly as an edge full page cache, Cloudflare for static and media, real client IP, purging and settings that break things.
A practical Magento 2 code review checklist: DI and architecture, performance traps, security and escaping, database changes, frontend, tests and deploy impact.
Why configurable products slow down Magento 2 pages, admin saves and indexers, and how to fix it: variation counts, swatches, price indexing and data modeling.
Where Magento 2 Luma stores lose Core Web Vitals and how to fix LCP, INP and CLS: server response, CSS, fonts, images, gallery, third party scripts.
Build a custom Magento 2 indexer: indexer.xml, mview.xml subscriptions, full and partial reindex, changelog tables, batching and safe table swapping.
How Magento 2 customer data sections keep cached pages personal: sections.xml, section sources, customer-data.js, invalidation and the mistakes that break FPC.
Make Magento 2 GraphQL fast: GET queries, Varnish caching, X-Magento-Cache-Id, @cache identities for custom resolvers, N+1 batching and query complexity limits.
How Magento 2 indexer modes work, why production stores use Update by Schedule, how mview triggers and changelogs work, and how to keep the index cron healthy.
Built-in JS bundling, merging, minification and Magepack in Magento 2 compared, with the settings to use, how to measure the result and when bundling hurts.
A step by step checklist to fix slow Magento 2 category pages: cache hits, profiling, N+1 product loads, layered navigation, swatches, images and the database.
Set up Varnish for Magento 2 full page cache and raise the hit rate: generated VCL, X-Magento-Tags, purges, cacheable=false traps, private content and ESI.
A practical zero downtime deploy for Magento 2.4 on one server: build in a release folder, compile outside live, switch a symlink and roll back in seconds.
Tune MySQL and MariaDB for Magento 2.4.8: buffer pool sizing, redo log, temp tables, binlog and triggers, finding slow queries and keeping tables lean.
Use New Relic APM with Magento 2: agent setup, the NewRelicReporting module, deploy markers, reading traces, custom parameters and cron and consumers.
How to connect Magento 2.4.8 to OpenSearch, size the JVM heap, keep the cluster green, speed up catalogsearch_fulltext reindexing and debug search problems.
Size PHP-FPM pools for Magento 2, pick the right process manager, set OPcache for a large codebase and avoid the php.ini mistakes that slow stores down.
How to design Magento 2 product attributes: input types, scope, searchable and filterable flags, attribute sets, data patches and cleanup of unused attributes.
Tune Magento 2 product images: view.xml sizes, the resize command, the image cache, upload quality, CDN resizing and LCP fixes for listing and product pages.
Configure Redis for Magento 2 cache, page cache and sessions: env.php settings, session locking, eviction policies, preload keys and the L2 cache backend.
How to audit third party Magento 2 extensions: inventory, maintenance status, security red flags, plugins and observers that slow the store, and what to cut.
Why the Magento 2 url_rewrite table grows to millions of rows, which settings cause it, how to measure it with SQL and how to clean it up without losing SEO.