docbrown/app/views/admin/tools/index.html.erb
ludwiczakpawel bf8e2e53f1
Titles & subtitles cleanup (#10508)
* .

* .

* .
2020-10-02 12:37:39 +02:00

31 lines
1.2 KiB
Text

<div class="crayons-card p-6 mb-6">
<h2 class="crayons-title mb-4">General Purpose URL Purge</h2>
<p class="mb-2">For a page that should 404. This will purge the page via Fastly.</p>
<p class="mb-6">Use the full path (<%= app_url("xyz") %>) or the relative path: (/xyz)</p>
<%= form_tag bust_cache_admin_tools_path do %>
<div class="form-group">
<%= label_tag :dead_link, "Link:" %>
<%= text_field_tag :dead_link, nil, placeholder: "/xyz" %>
<%= submit_tag("Clear Cache") %>
</div>
<% end %>
</div>
<div class="crayons-card p-6">
<h2 class="crayons-title mb-4">Bust Cache For Specific Content</h2>
<p class="mb-6">This clears both the Rails cache & the Fastly cache.</p>
<%= form_tag bust_cache_admin_tools_path do %>
<div class="form-group">
<%= label_tag :bust_article, "Article ID:" %>
<%= text_field_tag :bust_article, nil, placeholder: "12345" %>
<%= submit_tag("Clear Article Cache") %>
</div>
<% end %>
<%= form_tag bust_cache_admin_tools_path do %>
<div class="form-group">
<%= label_tag :bust_user, "User ID:" %>
<%= text_field_tag :bust_user, nil, placeholder: "12345" %>
<%= submit_tag("Clear User Cache") %>
</div>
<% end %>
</div>