1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Fixed cache names so multiple tournaments cache at once

This commit is contained in:
2017-01-31 14:01:09 +00:00
parent b5d07e103e
commit 86bb0b6f3c
5 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
<% cache ["all_brackets", @tournament] do %>
<% cache ["#{@tournament.id}_all_brackets", @tournament] do %>
<style>
.pagebreak {

View File

@@ -1,5 +1,5 @@
<% cache ["brackets", @weight] do %>
<% cache ["#{@weight.id}_bracket", @weight] do %>
</br>
</br>
</br>

View File

@@ -1,5 +1,5 @@
<% cache ["team_scores", @tournament] do %>
<% cache ["#{@tournament.id}_team_scores", @tournament] do %>
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" , :class=>"btn btn-default"%>
<br>
<br>

View File

@@ -1,7 +1,7 @@
<% if params[:print] == nil && Rails.env.production? %>
<script type='text/javascript' src='//eclkmpbn.com/adServe/banners?tid=85597_138467_5&type=shadowbox&size=800x440'></script>
<% end %>
<% cache ["up_matches", @tournament] do %>
<% cache ["#{@tournament.id}_up_matches", @tournament] do %>
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default"%>
<script>
// $(document).ready(function() {

View File

@@ -4,7 +4,7 @@
<% if can? :manage, @school %>
| <%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler), :class=>"btn btn-primary" %>
<% end %>
<% cache ["wrestlers", @wrestler] do %>
<% cache ["#{@wrestler.id}", @wrestler] do %>
<br>
<br>
<p>