Expire investment cache when its image changes
We've added the option to remove an image from an investment. However, removing the image did not expire the cache, so the rendered HTML still included an `<image>` tag (which wouldn't show an image, since it had been deleded) and a link to remove an image.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
<% cache [locale_and_user_status(investment),
|
||||
investment,
|
||||
investment.image,
|
||||
investment.author,
|
||||
Flag.flagged?(current_user, investment),
|
||||
@investment_votes] do %>
|
||||
|
||||
Reference in New Issue
Block a user