MCPInstall

magento-cache-analyst

Optimizes Magento 2 caching strategies for enterprise performance. Use when optimizing cache performance, configuring full-page cache, implementing Redis/Memcached, or designing cache invalidation strategies. Masters FPC, application cache, and distributed caching solutions.

Installs
143
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-cache-analyst
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads magento-cache-analyst automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Magento 2 Cache Analyst

Expert specialist in designing and implementing comprehensive caching strategies that dramatically improve application performance while ensuring data consistency and cache coherence across enterprise environments.

When to Use

  • Optimizing cache performance
  • Configuring full-page cache (FPC)
  • Implementing Redis or Memcached
  • Designing cache invalidation strategies
  • Troubleshooting cache issues
  • Planning cache architecture

Magento Cache Architecture

  • Cache Types: Master all Magento cache types and their optimal usage patterns
  • Full Page Cache: Expert in FPC configuration, ESI holes, and cache warming
  • Application Cache: Optimize block cache, configuration cache, and layout cache
  • Distributed Caching: Implement Redis, Memcached, and multi-tier caching
  • Cache Invalidation: Design efficient cache invalidation and purging strategies

Cache Types

Full Page Cache (FPC)

  • Varnish Configuration: Expert Varnish configuration and VCL optimization
  • Built-in FPC: Optimize Magento's built-in full-page cache
  • ESI Implementation: Implement Edge Side Includes for dynamic content
  • Cache Warming: Automated cache warming and preloading strategies
  • Cache Tags: Proper cache tag implementation for invalidation

Application Cache

  • Block Cache: Cache rendered blocks for faster page generation
  • Configuration Cache: Cache system and module configurations
  • Layout Cache: Cache layout XML structures
  • Collection Cache: Cache frequently accessed collections
  • Object Cache: Cache expensive object instantiation

Distributed Caching

  • Redis: High-performance in-memory data store
  • Memcached: Distributed memory caching system
  • Multi-tier Caching: Layer caching for optimal performance
  • Cache Synchronization: Maintain cache consistency across servers
  • Failover Strategies: Implement cache failover and recovery

Cache Optimization Process

1. Cache Assessment & Analysis

  • Performance Baseline: Establish current cache performance metrics
  • Cache Audit: Analyze existing cache configuration and effectiveness
  • Bottleneck Identification: Identify cache-related performance bottlenecks
  • Usage Pattern Analysis: Understand application cache usage patterns
  • Capacity Planning: Plan cache capacity and resource requirements

2. Cache Strategy Design

  • Layered Caching: Design multi-tier cache architectures
  • Cache Policies: Define cache TTL, eviction, and invalidation policies
  • Data Segmentation: Segment cache data for optimal performance
  • Storage Strategy: Choose appropriate cache storage backends
  • Synchronization Planning: Plan cache synchronization across environments

3. Implementation & Configuration

Redis Configuration

// app/etc/env.php
'cache' => [
    'frontend' => [
        'default' => [
            'backend' => 'Cm_Cache_Backend_Redis',
            'backend_options' => [
                'server' => '127.0.0.1',
                'port' => '6379',
                'database' => '0',
            ]
        ]
    ]
]

Cache Commands

# Clear all cache
bin/magento cache:clean
bin/magento cache:flush

# Enable/disable cache types
bin/magento cache:enable
bin/magento cache:disable

# Cache status
bin/magento cache:status

4. Testing & Optimization

  • Performance Testing: Validate cache performance improvements
  • Load Testing: Test cache behavior under high traffic conditions
  • Cache Warming: Implement effective cache warming strategies
  • Invalidation Testing: Test cache invalidation scenarios
  • Monitoring Validation: Verify monitoring and alerting effectiveness

Best Practices

Cache Strategy

  • Cache Hit Ratios: Maximize cache effectiveness and hit ratios
  • Memory Management: Optimize cache memory usage and allocation
  • Network Optimization: Reduce cache-related network overhead
  • Storage Optimization: Optimize cache storage and persistence strategies
  • Monitoring Integration: Implement comprehensive cache performance monitoring

Cache Invalidation

  • Tag-based Invalidation: Use cache tags for efficient invalidation
  • Event-based Invalidation: Invalidate cache on relevant events
  • Time-based Expiration: Set appropriate TTL values
  • Manual Invalidation: Provide manual cache clearing mechanisms
  • Selective Invalidation: Invalidate only affected cache entries

Enterprise Caching

  • CDN Integration: Optimize CDN caching and edge delivery
  • Multi-server Environments: Design caching for clustered deployments
  • Cache Synchronization: Maintain cache consistency across servers
  • Failover Strategies: Implement cache failover and recovery mechanisms
  • Scalability Planning: Design caching for horizontal and vertical scaling

Monitoring

  • Cache Hit Rates: Monitor cache hit/miss ratios
  • Memory Usage: Monitor cache memory consumption
  • Performance Metrics: Track cache-related performance improvements
  • Error Monitoring: Monitor cache errors and failures
  • Alerting: Set up alerts for cache issues

References

Focus on creating comprehensive caching strategies that dramatically improve performance while maintaining data consistency.

FAQ

What does the magento-cache-analyst skill do?

Optimizes Magento 2 caching strategies for enterprise performance. Use when optimizing cache performance, configuring full-page cache, implementing Redis/Memcached, or designing cache invalidation strategies. Masters FPC, application cache, and distributed caching solutions.

How do I install magento-cache-analyst?

Run npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-cache-analyst in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/magento-cache-analyst/ (personal) or .claude/skills/magento-cache-analyst/ (project).

Which AI agents can use magento-cache-analyst?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is magento-cache-analyst safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains magento-cache-analyst?

It is published by maxnorm in maxnorm/magento2-agent-skills. It has 143 recorded installs.

More from maxnorm/magento2-agent-skills

View all →

magento-hyva-specialist

maxnorm/magento2-agent-skills

Develops high-performance Magento 2 storefronts using Hyvä theme framework. Use when working with Hyvä themes, Alpine.js, Tailwind CSS, or modern frontend development. Masters Alpine.js architecture, Tailwind CSS styling, and performance optimization for blazing-fast e-commerce experiences.

Frontend & Design857 installs

magento-code-reviewer

maxnorm/magento2-agent-skills

Reviews Magento 2 code for quality, security, performance, and compliance with PSR-12 and Magento coding standards. Use proactively when reviewing code, before commits, during pull requests, or when ensuring code quality. Enforces strict type declarations, proper dependency injection, security best practices, and performance optimization.

Security477 installs

magento-module-developer

maxnorm/magento2-agent-skills

Creates robust, maintainable, and extensible Magento 2 modules following enterprise architecture patterns. Use when developing custom modules, implementing new functionality, creating extensions, or building Magento 2 components. Masters dependency injection, service contracts, repository patterns, and module architecture.

magento-performance-analyst

maxnorm/magento2-agent-skills

Conducts comprehensive Magento 2 performance analysis and optimization. Use when analyzing performance bottlenecks, profiling applications, optimizing database queries, or improving system scalability. Masters profiling tools, database optimization, and enterprise-scale performance tuning.

magento-frontend-developer

maxnorm/magento2-agent-skills

Creates comprehensive Magento 2 frontend solutions. Use when developing frontend features, working with layout XML, templates, JavaScript, or responsive design. Masters layout XML, template development, JavaScript integration, and performance optimization across all Magento frontend technologies.

Frontend & Design401 installs

magento-xml-specialist

maxnorm/magento2-agent-skills

Creates XML configurations for Magento 2 including layout XML, dependency injection, system configuration, and module definition. Use when working with XML configuration files, layout XML, di.xml, or system.xml. Masters XML schema design, validation, and configuration management.

Frontend & Design376 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.