General Purpose URL Purge
For a page that should 404. This will purge the page via Fastly.
Use the full path (<%= app_url("xyz") %>) or the relative path: (/xyz)
<%= form_tag bust_cache_admin_tools_path do %>
<%= label_tag :dead_link, "Link:", class: "crayons-field__label" %>
<%= text_field_tag :dead_link, nil, placeholder: "/xyz", class: "crayons-textfield" %>
<%= submit_tag :"Clear Cache", class: "crayons-btn mr-auto" %>
<% end %>
Bust Cache For Specific Content
This clears both the Rails cache & the Fastly cache.
<%= form_tag bust_cache_admin_tools_path do %>
<%= label_tag :bust_article, "Article ID:", class: "crayons-field__label" %>
<%= text_field_tag :bust_article, nil, placeholder: "12345", class: "crayons-textfield" %>
<%= submit_tag :"Clear Article Cache", class: "crayons-btn mr-auto" %>
<% end %>
<%= form_tag bust_cache_admin_tools_path do %>
<%= label_tag :bust_user, "User ID:", class: "crayons-field__label" %>
<%= text_field_tag :bust_user, nil, placeholder: "12345", class: "crayons-textfield" %>
<%= submit_tag :"Clear User Cache", class: "crayons-btn mr-auto" %>
<% end %>
<%= render "admin/shared/image_uploader" %>