more descriptive text for tag corrections
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<h1>Fix Tag</h1>
|
||||
<h1>Fix Tag: <%= @correction.tag.name %></h1>
|
||||
|
||||
<% @correction.each_server do |server| %>
|
||||
<div style="margin-bottom: 1em;">
|
||||
<h2>Server: <%= server.hostname %></h2>
|
||||
<ul>
|
||||
<li><strong>category cache</strong>: <%= server.statistics_hash["category_cache"] %></li>
|
||||
<li><strong>post fast count cache</strong>: <%= server.statistics_hash["post_fast_count_cache"] %></li>
|
||||
<li><strong>post count</strong>: <%= @correction.tag.post_count %></li>
|
||||
<li><strong>real post count:</strong> <%= @correction.tag.real_post_count %></li>
|
||||
<li><strong>category actual</strong>: <%= @correction.tag.category %></li>
|
||||
<li><strong>category memcache</strong>: <%= server.statistics_hash["category_cache"] %></li>
|
||||
<li><strong>post count memcache</strong>: <%= server.statistics_hash["post_fast_count_cache"] %></li>
|
||||
<li><strong>post count db cache</strong>: <%= @correction.tag.post_count %></li>
|
||||
<li><strong>post count actual:</strong> <%= @correction.tag.real_post_count %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
<h1>Tag Correction: <%= @correction.tag.name %></h1>
|
||||
|
||||
<p>Because tag aliases are cached in memory, they may go out of sync. This action will clear out the cache and fix any lingering posts.</p>
|
||||
|
||||
<% @correction.each_server do |server| %>
|
||||
<div style="margin-bottom: 1em;">
|
||||
<h2>Server: <%= server.hostname %></h2>
|
||||
<ul>
|
||||
<li><strong><%= server.antecedent_name %></strong> aliased to <strong><%= server.statistics_hash["antecedent_cache"] %></strong> in cache</li>
|
||||
<li><strong><%= server.consequent_name %></strong> aliased to <strong><%= server.statistics_hash["consequent_cache"] %></strong> in cache</li>
|
||||
<li><strong><%= server.antecedent_name %></strong> count is <%= server.statistics_hash["antecedent_count"] %></li>
|
||||
<li><strong><%= server.consequent_name %></strong> count is <%= server.statistics_hash["consequent_count"] %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p>You can try to fix this alias. This will clear the cache and re-save all posts associated with <strong><%= @correction.antecedent_name %></strong>.</p>
|
||||
|
||||
<%= form_tag(tag_alias_correction_path(:tag_alias_id => @correction.tag_alias_id)) do %>
|
||||
<%= submit_tag "Fix" %>
|
||||
<%= submit_tag "Cancel" %>
|
||||
<% end %>
|
||||
|
||||
<%= render "tag_aliases/secondary_links" %>
|
||||
Reference in New Issue
Block a user