rails-caching

Installation
SKILL.md

Rails Caching

Use Rails caching to reduce response time and database load while keeping content fresh. This skill focuses on fragment caching, low-level caching, cache keys, and conditional GETs.

Fragment caching

Wrap view fragments that can be reused:

<% @products.each do |product| %>
  <% cache product do %>
    <%= render product %>
  <% end %>
<% end %>

Notes:

  • Cache keys include a template digest; edits to the fragment invalidate it.
Related skills

More from bastos/ruby-plugin-marketplace

Installs
1
GitHub Stars
2
First Seen
Apr 16, 2026