Implements Rails caching patterns for performance optimization. Use when adding fragment caching, Russian doll caching, low-level caching, cache invalidation, or when user mentions caching, performance, cache keys, or memoization.
92
89%
Does it follow best practices?
Impact
100%
1.09xAverage score across 3 eval scenarios
Passed
No known issues
Fragment and Russian doll caching
Fragment cache in partial
100%
100%
Outer cache on show
100%
100%
Inner cache on children
100%
100%
Collection caching syntax
100%
100%
touch on Comment
100%
100%
touch on EventVendor
100%
100%
Production cache store
100%
100%
Development cache store
100%
100%
No manual key building for model fragments
100%
100%
No null_store in production
100%
100%
Low-level caching service objects
CACHE_KEY constant
75%
100%
CACHE_TTL constant
75%
100%
Rails.cache.fetch in service
100%
100%
invalidate method
100%
100%
Namespaced cache key
100%
100%
Query use_cache parameter
66%
100%
Query cache_key helper
88%
100%
Query fetch with expires_in
100%
100%
after_commit in Event model
20%
100%
Invalidation called from model
100%
100%
No manual key in fetch call
100%
100%
HTTP caching and monitoring
stale? on show
100%
100%
stale? on index
100%
100%
public: true for CDN
100%
100%
private: true for browser-only
100%
100%
Fragment cache logging
100%
100%
Notifications.subscribe call
100%
100%
Correct notification name
100%
100%
Hit/miss logging
100%
100%
Cache key in log
100%
100%
Event wrapping
0%
100%
15fdeaf
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.