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_internal_tools_path do %>
<%= label_tag("Link:") %> <%= text_field_tag :dead_link, nil, placeholder: "/xyz" %> <%= submit_tag("Clear Cache") %>
<% end %>

Bust Cache For Specific Content

This clears both the Rails cache & the Fastly cache.

<%= form_tag bust_cache_internal_tools_path do %>
<%= label_tag("Article ID: ") %> <%= text_field_tag :bust_article, nil, placeholder: "12345" %> <%= submit_tag("Clear Article Cache") %>
<% end %>
<%= form_tag bust_cache_internal_tools_path do %>
<%= label_tag("User ID: ") %> <%= text_field_tag :bust_user, nil, placeholder: "12345" %> <%= submit_tag("Clear User Cache") %>
<% end %>