Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions resources/views/widgets/cache_controller.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<h3 class="font-bold mb-1">{{ __('Content Stache') }}</h3>
<form method="POST" action="{{ cp_route('utilities.cache.clear', 'stache') }}">
@csrf
<button type="button" class="btn w-full">{{ __('Clear') }}</button>
<button type="submit" class="btn w-full">{{ __('Clear') }}</button>
</form>
</div>
<div class="w-1/2 p-2">
<h3 class="font-bold mb-1">{{ __('Static Page Cache') }}</h3>
@if (config('statamic.static_caching.strategy'))
<form method="POST" action="{{ cp_route('utilities.cache.clear', 'static') }}">
@csrf
<button type="button" class="btn w-full">{{ __('Clear') }}</button>
<button type="submit" class="btn w-full">{{ __('Clear') }}</button>
</form>
@else
disabled
Expand All @@ -30,20 +30,20 @@
<h3 class="font-bold mb-1">{{ __('Application Cache') }}</h3>
<form method="POST" action="{{ cp_route('utilities.cache.clear', 'application') }}">
@csrf
<button type="button" class="btn w-full">{{ __('Clear') }}</button>
<button type="submit" class="btn w-full">{{ __('Clear') }}</button>
</form>
</div>
<div class="w-1/2 p-2">
<h3 class="font-bold mb-1">{{ __('Image Cache') }}</h3>
<form method="POST" action="{{ cp_route('utilities.cache.clear', 'image') }}">
@csrf
<button type="button" class="btn w-full">{{ __('Clear') }}</button>
<button type="submit" class="btn w-full">{{ __('Clear') }}</button>
</form>
</div>
<div class="w-full p-2 border-t">
<form method="POST" action="{{ cp_route('utilities.cache.clear', 'all') }}">
@csrf
<button type="button" class="btn-primary w-full">{{ __('Clear All') }}</button>
<button type="submit" class="btn-primary w-full">{{ __('Clear All') }}</button>
</form>
</div>
</div>
Expand Down