diff --git a/app/views/modules/_metric_results.html.erb b/app/views/modules/_metric_results.html.erb index faf77aa..f348c0c 100644 --- a/app/views/modules/_metric_results.html.erb +++ b/app/views/modules/_metric_results.html.erb @@ -7,7 +7,7 @@
- <% cache do %> + <% cache("#{@root_module_result.id}_results") do %> <%= render partial: 'metric_result', collection: @root_module_result.metric_results, locals: {module_result: @root_module_result} %> <% end %> diff --git a/app/views/modules/_module_tree.html.erb b/app/views/modules/_module_tree.html.erb index a9c67f2..6e5839b 100644 --- a/app/views/modules/_module_tree.html.erb +++ b/app/views/modules/_module_tree.html.erb @@ -14,7 +14,7 @@<%= link_to '../', '#parent', onClick: "Module.Tree.load('#{escape_javascript(image_tag 'loader.gif')} Loading data. Please, wait.', #{@root_module_result.parent_id});" %>
<% end %> -<% cache do %> +<% cache("#{@root_module_result.id}_tree") do %> <% children = @root_module_result.children %> <% unless children.empty? %>