Skip to content
magento-cache-analyst logo

Magento 2 Cache Analyst

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.

SKILL.md

Full skill instructions

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.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View