{"id":"23d8e489-f93e-42ff-b053-d7610b623d1d","shortId":"CfVLx6","kind":"skill","title":"magento-cache-analyst","tagline":"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.","description":"# Magento 2 Cache Analyst\n\nExpert specialist in designing and implementing comprehensive caching strategies that dramatically improve application performance while ensuring data consistency and cache coherence across enterprise environments.\n\n## When to Use\n\n- Optimizing cache performance\n- Configuring full-page cache (FPC)\n- Implementing Redis or Memcached\n- Designing cache invalidation strategies\n- Troubleshooting cache issues\n- Planning cache architecture\n\n## Magento Cache Architecture\n\n- **Cache Types**: Master all Magento cache types and their optimal usage patterns\n- **Full Page Cache**: Expert in FPC configuration, ESI holes, and cache warming\n- **Application Cache**: Optimize block cache, configuration cache, and layout cache\n- **Distributed Caching**: Implement Redis, Memcached, and multi-tier caching\n- **Cache Invalidation**: Design efficient cache invalidation and purging strategies\n\n## Cache Types\n\n### Full Page Cache (FPC)\n- **Varnish Configuration**: Expert Varnish configuration and VCL optimization\n- **Built-in FPC**: Optimize Magento's built-in full-page cache\n- **ESI Implementation**: Implement Edge Side Includes for dynamic content\n- **Cache Warming**: Automated cache warming and preloading strategies\n- **Cache Tags**: Proper cache tag implementation for invalidation\n\n### Application Cache\n- **Block Cache**: Cache rendered blocks for faster page generation\n- **Configuration Cache**: Cache system and module configurations\n- **Layout Cache**: Cache layout XML structures\n- **Collection Cache**: Cache frequently accessed collections\n- **Object Cache**: Cache expensive object instantiation\n\n### Distributed Caching\n- **Redis**: High-performance in-memory data store\n- **Memcached**: Distributed memory caching system\n- **Multi-tier Caching**: Layer caching for optimal performance\n- **Cache Synchronization**: Maintain cache consistency across servers\n- **Failover Strategies**: Implement cache failover and recovery\n\n## Cache Optimization Process\n\n### 1. Cache Assessment & Analysis\n- **Performance Baseline**: Establish current cache performance metrics\n- **Cache Audit**: Analyze existing cache configuration and effectiveness\n- **Bottleneck Identification**: Identify cache-related performance bottlenecks\n- **Usage Pattern Analysis**: Understand application cache usage patterns\n- **Capacity Planning**: Plan cache capacity and resource requirements\n\n### 2. Cache Strategy Design\n- **Layered Caching**: Design multi-tier cache architectures\n- **Cache Policies**: Define cache TTL, eviction, and invalidation policies\n- **Data Segmentation**: Segment cache data for optimal performance\n- **Storage Strategy**: Choose appropriate cache storage backends\n- **Synchronization Planning**: Plan cache synchronization across environments\n\n### 3. Implementation & Configuration\n\n#### Redis Configuration\n```php\n// app/etc/env.php\n'cache' => [\n    'frontend' => [\n        'default' => [\n            'backend' => 'Cm_Cache_Backend_Redis',\n            'backend_options' => [\n                'server' => '127.0.0.1',\n                'port' => '6379',\n                'database' => '0',\n            ]\n        ]\n    ]\n]\n```\n\n#### Cache Commands\n```bash\n# Clear all cache\nbin/magento cache:clean\nbin/magento cache:flush\n\n# Enable/disable cache types\nbin/magento cache:enable\nbin/magento cache:disable\n\n# Cache status\nbin/magento cache:status\n```\n\n### 4. Testing & Optimization\n- **Performance Testing**: Validate cache performance improvements\n- **Load Testing**: Test cache behavior under high traffic conditions\n- **Cache Warming**: Implement effective cache warming strategies\n- **Invalidation Testing**: Test cache invalidation scenarios\n- **Monitoring Validation**: Verify monitoring and alerting effectiveness\n\n## Best Practices\n\n### Cache Strategy\n- **Cache Hit Ratios**: Maximize cache effectiveness and hit ratios\n- **Memory Management**: Optimize cache memory usage and allocation\n- **Network Optimization**: Reduce cache-related network overhead\n- **Storage Optimization**: Optimize cache storage and persistence strategies\n- **Monitoring Integration**: Implement comprehensive cache performance monitoring\n\n### Cache Invalidation\n- **Tag-based Invalidation**: Use cache tags for efficient invalidation\n- **Event-based Invalidation**: Invalidate cache on relevant events\n- **Time-based Expiration**: Set appropriate TTL values\n- **Manual Invalidation**: Provide manual cache clearing mechanisms\n- **Selective Invalidation**: Invalidate only affected cache entries\n\n### Enterprise Caching\n- **CDN Integration**: Optimize CDN caching and edge delivery\n- **Multi-server Environments**: Design caching for clustered deployments\n- **Cache Synchronization**: Maintain cache consistency across servers\n- **Failover Strategies**: Implement cache failover and recovery mechanisms\n- **Scalability Planning**: Design caching for horizontal and vertical scaling\n\n## Monitoring\n\n- **Cache Hit Rates**: Monitor cache hit/miss ratios\n- **Memory Usage**: Monitor cache memory consumption\n- **Performance Metrics**: Track cache-related performance improvements\n- **Error Monitoring**: Monitor cache errors and failures\n- **Alerting**: Set up alerts for cache issues\n\n## References\n\n- [Adobe Commerce Cache Management](https://developer.adobe.com/commerce/php/development/cache/)\n- [Full Page Cache](https://developer.adobe.com/commerce/php/development/cache/page/)\n- [Redis Configuration](https://developer.adobe.com/commerce/php/development/cache/partial/redis/)\n\nFocus on creating comprehensive caching strategies that dramatically improve performance while maintaining data consistency.","tags":["magento","cache","analyst","magento2","agent","skills","maxnorm","agent-skills"],"capabilities":["skill","source-maxnorm","skill-magento-cache-analyst","topic-agent-skills","topic-magento2"],"categories":["magento2-agent-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/maxnorm/magento2-agent-skills/magento-cache-analyst","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add maxnorm/magento2-agent-skills","source_repo":"https://github.com/maxnorm/magento2-agent-skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 9 github stars · SKILL.md body (5,612 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:08:48.357Z","embedding":null,"createdAt":"2026-05-07T20:45:03.116Z","updatedAt":"2026-05-18T19:08:48.357Z","lastSeenAt":"2026-05-18T19:08:48.357Z","tsv":"'/commerce/php/development/cache/)':625 '/commerce/php/development/cache/page/)':631 '/commerce/php/development/cache/partial/redis/)':636 '0':387 '1':279 '127.0.0.1':383 '2':7,39,322 '3':365 '4':414 '6379':385 'access':229 'across':63,267,363,563 'adob':619 'affect':536 'alert':450,611,614 'alloc':472 'analysi':282,308 'analyst':4,41 'analyz':292 'app/etc/env.php':371 'applic':32,54,119,201,310 'appropri':354,522 'architectur':91,94,333 'assess':281 'audit':291 'autom':187 'backend':357,375,378,380 'base':500,510,519 'baselin':284 'bash':390 'behavior':427 'best':452 'bin/magento':394,397,403,406,411 'block':122,203,207 'bottleneck':298,305 'built':163,170 'built-in':162,169 'cach':3,8,16,22,27,33,36,40,49,61,70,76,83,87,90,93,95,100,109,117,120,123,125,128,130,138,139,143,148,152,175,185,188,193,196,202,204,205,213,214,220,221,226,227,232,233,238,251,256,258,262,265,272,276,280,287,290,294,302,311,317,323,327,332,334,337,346,355,361,372,377,388,393,395,398,401,404,407,409,412,420,426,432,436,442,454,456,460,468,477,484,493,496,503,513,529,537,540,545,554,558,561,568,576,583,587,593,600,607,616,621,628,641 'cache-rel':301,476,599 'capac':314,318 'cdn':541,544 'choos':353 'clean':396 'clear':391,530 'cluster':556 'cm':376 'coher':62 'collect':225,230 'command':389 'commerc':620 'comprehens':48,492,640 'condit':431 'configur':18,72,113,124,155,158,212,218,295,367,369,633 'consist':59,266,562,650 'consumpt':595 'content':184 'creat':639 'current':286 'data':58,246,343,347,649 'databas':386 'default':374 'defin':336 'deliveri':548 'deploy':557 'design':26,45,82,141,325,328,553,575 'developer.adobe.com':624,630,635 'developer.adobe.com/commerce/php/development/cache/)':623 'developer.adobe.com/commerce/php/development/cache/page/)':629 'developer.adobe.com/commerce/php/development/cache/partial/redis/)':634 'disabl':408 'distribut':35,129,237,249 'dramat':52,644 'dynam':183 'edg':179,547 'effect':297,435,451,461 'effici':142,506 'enabl':405 'enable/disable':400 'ensur':57 'enterpris':11,64,539 'entri':538 'environ':65,364,552 'error':604,608 'esi':114,176 'establish':285 'event':509,516 'event-bas':508 'evict':339 'exist':293 'expens':234 'expert':42,110,156 'expir':520 'failov':269,273,565,569 'failur':610 'faster':209 'flush':399 'focus':637 'fpc':31,77,112,153,165 'frequent':228 'frontend':373 'full':20,74,107,150,173,626 'full-pag':19,73,172 'generat':211 'high':241,429 'high-perform':240 'hit':457,463,584 'hit/miss':588 'hole':115 'horizont':578 'identif':299 'identifi':300 'implement':23,47,78,131,177,178,198,271,366,434,491,567 'improv':53,422,603,645 'in-memori':243 'includ':181 'instanti':236 'integr':490,542 'invalid':28,84,140,144,200,341,439,443,497,501,507,511,512,526,533,534 'issu':88,617 'layer':257,326 'layout':127,219,222 'load':423 'magento':2,6,38,92,99,167 'magento-cache-analyst':1 'maintain':264,560,648 'manag':466,622 'manual':525,528 'master':30,97 'maxim':459 'mechan':531,572 'memcach':81,133,248 'memori':245,250,465,469,590,594 'metric':289,597 'modul':217 'monitor':445,448,489,495,582,586,592,605,606 'multi':136,254,330,550 'multi-serv':549 'multi-ti':135,253,329 'network':473,479 'object':231,235 'optim':5,15,69,104,121,161,166,260,277,349,416,467,474,482,483,543 'option':381 'overhead':480 'page':21,75,108,151,174,210,627 'pattern':106,307,313 'perform':12,17,55,71,242,261,283,288,304,350,417,421,494,596,602,646 'persist':487 'php':370 'plan':89,315,316,359,360,574 'polici':335,342 'port':384 'practic':453 'preload':191 'process':278 'proper':195 'provid':527 'purg':146 'rate':585 'ratio':458,464,589 'recoveri':275,571 'redi':79,132,239,368,379,632 'redis/memcached':24 'reduc':475 'refer':618 'relat':303,478,601 'relev':515 'render':206 'requir':321 'resourc':320 'scalabl':573 'scale':581 'scenario':444 'segment':344,345 'select':532 'server':268,382,551,564 'set':521,612 'side':180 'skill' 'skill-magento-cache-analyst' 'solut':37 'source-maxnorm' 'specialist':43 'status':410,413 'storag':351,356,481,485 'store':247 'strategi':9,29,50,85,147,192,270,324,352,438,455,488,566,642 'structur':224 'synchron':263,358,362,559 'system':215,252 'tag':194,197,499,504 'tag-bas':498 'test':415,418,424,425,440,441 'tier':137,255,331 'time':518 'time-bas':517 'topic-agent-skills' 'topic-magento2' 'track':598 'traffic':430 'troubleshoot':86 'ttl':338,523 'type':96,101,149,402 'understand':309 'usag':105,306,312,470,591 'use':13,68,502 'valid':419,446 'valu':524 'varnish':154,157 'vcl':160 'verifi':447 'vertic':580 'warm':118,186,189,433,437 'xml':223","prices":[{"id":"ddcc7bda-1846-4f77-9be4-be1f9d63aac3","listingId":"23d8e489-f93e-42ff-b053-d7610b623d1d","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"maxnorm","category":"magento2-agent-skills","install_from":"skills.sh"},"createdAt":"2026-05-07T20:45:03.116Z"}],"sources":[{"listingId":"23d8e489-f93e-42ff-b053-d7610b623d1d","source":"github","sourceId":"maxnorm/magento2-agent-skills/magento-cache-analyst","sourceUrl":"https://github.com/maxnorm/magento2-agent-skills/tree/main/skills/magento-cache-analyst","isPrimary":false,"firstSeenAt":"2026-05-18T13:14:27.668Z","lastSeenAt":"2026-05-18T19:08:48.357Z"},{"listingId":"23d8e489-f93e-42ff-b053-d7610b623d1d","source":"skills_sh","sourceId":"maxnorm/magento2-agent-skills/magento-cache-analyst","sourceUrl":"https://skills.sh/maxnorm/magento2-agent-skills/magento-cache-analyst","isPrimary":true,"firstSeenAt":"2026-05-07T20:45:03.116Z","lastSeenAt":"2026-05-07T22:43:10.138Z"}],"details":{"listingId":"23d8e489-f93e-42ff-b053-d7610b623d1d","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"maxnorm","slug":"magento-cache-analyst","github":{"repo":"maxnorm/magento2-agent-skills","stars":9,"topics":["agent-skills","magento2"],"license":"mit","html_url":"https://github.com/maxnorm/magento2-agent-skills","pushed_at":"2026-01-24T16:45:35Z","description":"A collection of specialized agent skills for Magento 2 development, designed to provide domain expertise across all aspects of Magento/Adobe Commerce development workflows. ","skill_md_sha":"38c5e567c57377317e67132af9aca81c03f857cd","skill_md_path":"skills/magento-cache-analyst/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/maxnorm/magento2-agent-skills/tree/main/skills/magento-cache-analyst"},"layout":"multi","source":"github","category":"magento2-agent-skills","frontmatter":{"name":"magento-cache-analyst","description":"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."},"skills_sh_url":"https://skills.sh/maxnorm/magento2-agent-skills/magento-cache-analyst"},"updatedAt":"2026-05-18T19:08:48.357Z"}}