Commit fb294f212db7e33aecc45d81cf3e81e7f0a389ee
1 parent
bbf75a42
Exists in
colab
and in
4 other branches
Better cache fragment keys and chart labels
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
app/views/modules/_metric_results.html.erb
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | </thead> |
8 | 8 | |
9 | 9 | <tbody> |
10 | - <% cache do %> | |
10 | + <% cache("#{@root_module_result.id}_results") do %> | |
11 | 11 | <%= render partial: 'metric_result', collection: @root_module_result.metric_results, locals: {module_result: @root_module_result} %> |
12 | 12 | <% end %> |
13 | 13 | </tbody> | ... | ... |
app/views/modules/_module_tree.html.erb
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | <p id="parent"><i class="icon-arrow-up"></i><%= link_to '../', '#parent', onClick: "Module.Tree.load('#{escape_javascript(image_tag 'loader.gif')} Loading data. Please, wait.', #{@root_module_result.parent_id});" %></p> |
15 | 15 | <% end %> |
16 | 16 | |
17 | -<% cache do %> | |
17 | +<% cache("#{@root_module_result.id}_tree") do %> | |
18 | 18 | <% children = @root_module_result.children %> |
19 | 19 | <% unless children.empty? %> |
20 | 20 | <table class="table table-hover"> | ... | ... |
app/views/modules/metric_history.js.erb