Reputation: 25552
If I am generating a cache block like so:
<% cache ['v1', current_user, 'info'] do %>
Info HEre
<% end %>
How do I go about expiring the fragment?
Upvotes: 1
Views: 215
Reputation: 7160
You need write this line of code in all actions where you edit this fragment:
expire_fragment(['v1', current_user, 'info'])
Upvotes: 1