Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我正在生成这样的缓存块:
<% cache ['v1', current_user, 'info'] do %> Info HEre <% end %>
如何使片段过期?
您需要在编辑此片段的所有操作中编写这行代码:
expire_fragment(['v1', current_user, 'info'])