magento-indexing-caching

Configure Magento indexers, Varnish full-page cache, and Redis session storage.

3|1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/tomtoto757/ecomm-ai-team --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-team/tree/main/skills/platform-integrations-infrastructure/finsilabs/platform-magento/magento-indexing-caching
Command: npx skills add https://github.com/tomtoto757/ecomm-ai-team --skill magento-indexing-caching-tomtoto757

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Magento stores often suffer from stale prices, invisible products, slow category pages, and session bottlenecks caused by misconfigured indexers and caching layers. This Skill provides production-grade guidance for managing Magento indexers, deploying Varnish as the full-page cache, and configuring Redis for application cache and sessions. ## Core Features & Use Cases - Indexer Management: Set indexers to Update by Schedule mode, run partial reindexes, tune batch sizes, and diagnose stale data via changelog tables and cron health checks. - Varnish FPC Configuration: Generate and customize VCL for full-page caching, handle X-Magento-Vary context cookies, and strip tracking parameters to prevent cache fragmentation. - Redis Setup: Configure separate Redis databases for default cache, page cache, and sessions with correct compression, persistence, and eviction policies. - Use Case: After a bulk product import shows wrong prices on the storefront, use this Skill to check indexer changelog backlogs, reindex only catalog_product_price, and verify cron is processing scheduled indexers. ## Quick Start Ask the AI to configure Magento production indexers and Redis caching for an 80,000-SKU catalog, including a diagnostic runbook for stale price issues.

Frequently Asked Questions about magento-indexing-caching

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

FAQPage Schema
How do I fix wrong prices or invisible products in Magento after import?▼

Run bin/magento indexer:show-changelog to check for pending rows, then reindex the affected indexer with bin/magento indexer:reindex catalog_product_price. Programmatic product saves via ResourceModel often skip indexer triggers, so reindex after bulk imports.

How to configure Varnish as full-page cache for Magento 2?▼

Set the caching application to Varnish in Admin under System > Full Page Cache, then export the VCL with bin/magento varnish:vcl:generate. Verify caching with curl -I and check for an X-Cache: HIT response header.

Should Magento indexers use Update on Save or Update by Schedule?▼

Production stores should use Update by Schedule for all indexers. Update on Save reindexes synchronously during admin saves, causing timeouts and checkout blocking on large catalogs.

What is the difference between cache:clean and cache:flush in Magento?▼

cache:clean removes only invalid cache entries and is safe for routine maintenance. cache:flush deletes everything in the cache storage, including other framework caches sharing the same Redis instance.

Why is Redis running out of memory with Magento sessions?▼

Set maxmemory-policy allkeys-lru for cache databases so old entries evict under pressure, but use noeviction for the session database to prevent silent session loss. Also separate cache, FPC, and sessions into distinct Redis databases.

Can staging and production share one Redis instance in Magento?▼

Yes, if each environment uses a distinct id_prefix in the cache frontend configuration. This prevents cache poisoning between environments sharing the same Redis server.