Use caching to, ironically, prevent caching.

Now that I'm updating the database out of band with information about
the fundraiser, I've found that the page does not properly update.

This change will hopefully fix the issue.
This commit is contained in:
Bradley M. Kuhn 2015-03-08 23:19:07 -07:00
parent db4a82f432
commit 60d016134f

View file

@ -1,4 +1,5 @@
{% extends "base_conservancy.html" %}
{% load cache %}
{% load humanize %}
{% block head %}
<link href="/jquery-ui.css" rel="stylesheet" type="text/css"/>
@ -20,9 +21,11 @@
<p>Support our GPL compliance work now &amp; <strong>donation counts double!</strong></p>
{% cache 3600 compliancedonation fundgoal.fundraiser_so_far_amount %}
$<span id="fundraiser-so-far">{{ fundgoal.fundraiser_so_far_amount|floatformat:0|intcomma }}</span>
of $<span id="fundraiser-goal">{{ fundgoal.fundraiser_goal_amount|floatformat:0|intcomma }}</span> match met.<br/>
<div id="progressbar"><span id="fundraiser-percentage">(i.e., {{ fundgoal.percentage_there|floatformat:1 }}%)</span></div>
{% endcache %}
<p>Donate now via PayPal:
</p>