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:
Javi Martín
2020-02-04 14:51:40 +01:00
parent 9bbed55d20
commit 98c212f271

View File

@@ -9,6 +9,7 @@
<% cache [locale_and_user_status(investment),
investment,
investment.image,
investment.author,
Flag.flagged?(current_user, investment),
@investment_votes] do %>