Expire cache when users follow/unfollow
When users followed/unfollowed a proposal or a budget investment, the cache did not expire and so the wrong button was displayed after reloading the page.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
investment.image,
|
||||
investment.author,
|
||||
Flag.flagged?(current_user, investment),
|
||||
investment.followed_by?(current_user),
|
||||
@investment_votes] do %>
|
||||
<section class="budget-investment-show" id="<%= dom_id(investment) %>">
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
@proposal,
|
||||
@proposal.author,
|
||||
Flag.flagged?(current_user, @proposal),
|
||||
@proposal.followed_by?(current_user),
|
||||
@proposal_votes] do %>
|
||||
<div class="proposal-show">
|
||||
<div id="<%= dom_id(@proposal) %>" class="row">
|
||||
|
||||
Reference in New Issue
Block a user