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> <style>
.pagebreak { .pagebreak {

View File

@@ -1,5 +1,5 @@
<% cache ["brackets", @weight] do %> <% cache ["#{@weight.id}_bracket", @weight] do %>
</br> </br>
</br> </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"%> <%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" , :class=>"btn btn-default"%>
<br> <br>
<br> <br>

View File

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

View File

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