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:
		
							parent
							
								
									db4a82f432
								
							
						
					
					
						commit
						60d016134f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -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 & <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> | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn