Magento Blog: Guides and Practical Know-how | Page 172 | mironsoft
Magento Blog
-
Sep 23, 2025
In Magento 2 there are three fundamentally different test types with very different runtimes, maintenance costs, and areas of use. PHPUnit for unit and integration tests, MFTF for end-to-end browser tests, and REST API tests for the web service layer. The most common mistakes in Magento test strategies: too many MFTF tests, too few unit tests, and API tests that should really be logic tests.
-
Sep 23, 2025
After every Magento deployment the Redis cache is empty, and the first requests hit the database unchecked. This article explains why that traffic spike happens, how warmup crawlers and cache preload scripts prevent it, and how warmup can be cleanly integrated into a deployment pipeline.
-
Sep 23, 2025
The Long Animation Frames API delivers a far more granular breakdown of blocking frames than the older Long Tasks API, showing exactly how much of each long frame comes from script execution versus rendering. That makes it a central tool for precisely diagnosing INP regressions.
-
Sep 23, 2025
Codegen turns a TypeScript spec file into the single source of truth for a TurboModule, generating matching interface code for iOS and Android at build time. This article walks through what codegen actually does, how a new TurboModule spec comes together in practice, and which class of bugs disappears entirely compared to hand-written bridging declarations.
-
Sep 23, 2025
Conditional aggregation is one of the most common needs in reporting queries: how many orders are cancelled, how many completed, how many still open, all in a single row per group. The classic path there runs through COUNT combined with a CASE WHEN expression that returns either a value or null depending on the condition. The SQL standard has offered a noticeably clearer alternative for a while now: the FILTER clause, attached directly to the aggregate function. This article covers how FILTER works, why it beats CASE WHEN for readability in many cases, how it combines with window functions for several parallel metrics, and where database availability draws the line.
-
Sep 23, 2025
Setting canonical tags incorrectly on a Magento store wastes ranking signals and creates duplicate content problems through filter URLs, sorting parameters, and products assigned to multiple categories. This article explains how rel canonical actually works as a hint for Google, when a 301 redirect or noindex is the right choice instead, and how to override Magento's default canonical behavior when needed.
-
Sep 22, 2025
INP breaks down into three measurable phases that most performance guides only cover on the surface. This deep dive examines input delay, processing time, and presentation delay individually, explains the role of third party scripts and Alpine.js reactivity in Hyva stores, and walks through the Chrome DevTools Performance panel to show exactly how long tasks get found and fixed.
-
Sep 22, 2025
A single stolen admin password today is enough to cause total damage in a Magento backend. This article shows how TOTP per RFC 6238, hashed backup codes, and phishing resistant WebAuthn/FIDO2 are implemented correctly at the technical level, and how Magento's native Two-Factor Auth module can be enforced for every admin user to close this gap.
-
Sep 22, 2025
Declarative Schema replaces old InstallScripts, but only when tables, constraints, indexes, and patches are kept cleanly separated. These five mistakes cause most of the problems in Magento projects.
-
Sep 22, 2025
Offset pagination with OFFSET and LIMIT looks simple at first glance, but returns shifted, duplicate, or skipped entries once the underlying data changes between two requests. Cursor-based pagination (also called keyset pagination) fixes this structurally by anchoring every page to an actual record instead of a numeric position, through an opaque token built from a sort key and a unique id.