magento-indexing-caching

Configure Magento indexers, Varnish VCL, and Redis cache storage.

14|3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/tomtoto757/ecomm-ai-skills-hub --skill magento-indexing-caching-tomtoto757
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento-indexing-caching
Source: https://github.com/tomtoto757/ecomm-ai-skills-hub/tree/main/skills/platform-integrations-infrastructure/finsilabs/platform-magento/magento-indexing-caching
Command: npx skills add https://github.com/tomtoto757/ecomm-ai-skills-hub --skill magento-indexing-caching-tomtoto757

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps prevent slow storefronts, stale product prices, and incorrect product visibility by giving operators clear, production-ready guidance to manage Magento indexers, deploy a Varnish full-page cache, and configure Redis for cache and session storage.

Core Features & Use Cases

  • Indexer management: Guidance to set indexers to Update by Schedule, inspect mview changelogs, use indexer:reset and selective reindexing, and enable parallel/async indexing for large catalogs.
  • Full-Page Cache (Varnish): Instructions to generate and audit the Magento Varnish VCL, tune VCL hash and response rules, and warm or purge the cache safely after deploys.
  • Redis configuration: Recommended env.php snippets for separate Redis DBs for application cache, page cache, and sessions, with production-friendly backend options and session tuning.
  • Cache tag invalidation: Examples for implementing IdentityInterface in blocks and using TypeListInterface in observers so Varnish and Magento invalidate only affected pages.
  • Runbook & diagnostics: Practical checks for cron health, changelog table sizes, cache warming, and safe procedures for reindexing on live systems.

Quick Start

Run Magento indexer diagnostics and reindex the affected price or search index, then generate and deploy the Varnish VCL and verify Redis is configured with separate databases for cache, FPC, and sessions.

Frequently Asked Questions about magento-indexing-caching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Magento indexers to prevent stale product data?

Magento cache invalidation targets affected pages by implementing IdentityInterface in blocks and using TypeListInterface in observers. This ensures Varnish and Magento only invalidate specific pages rather than flushing the entire full-page cache.

How do I set up Redis for Magento cache and session storage?

Set up Redis for Magento by configuring env.php snippets to use separate Redis databases for application cache, page cache, and sessions. Apply production-friendly backend options and session tuning to optimize Magento application and session storage performance.

What is the best way to deploy Varnish full-page cache for Magento?

The best way to deploy Varnish full-page cache is to generate and audit the Magento Varnish VCL, then tune VCL hash and response rules. Safely warm or purge the cache after deploys to maintain fast storefront performance.

Can I enable parallel indexing for large Magento catalogs?

Magento cache invalidation targets affected pages by implementing IdentityInterface in blocks and using TypeListInterface in observers. This ensures Varnish and Magento only invalidate specific pages rather than flushing the entire full-page cache.

Why is my Magento storefront slow after product updates?

Your Magento storefront is slow after product updates because indexers may be running in real-time mode instead of Update by Schedule. Check cron health, inspect changelog table sizes, and run indexer diagnostics to identify large-catalog indexing bottlenecks.