@extends('backend.layouts.app') @section('title', 'Purge Cache') @section('content') @include('backend.module._index-reset-button') @php $pageTitle = 'Purge Cache'; $indexRoute = 'admin.purge-cache.index'; $indexLabel = 'Purge Cache'; @endphp @include('backend.layouts.partials._page_header')

App Cache (Database)

{{ $appCache['total'] }}

{{ $appCache['active'] }} active · {{ $appCache['expired'] }} expired · prefix: {{ $cachePrefix }}

Compiled Views

{{ $viewCache['total'] }}

storage/framework/views · {{ number_format($viewCache['size'] / 1024, 1) }} KB

Site Mirror Files

{{ $siteMirror['dirs']->sum('total') }}

site-meta.json: {{ $siteMirror['meta_exists'] ? 'updated ' . $siteMirror['meta_modified'] : 'MISSING' }}

Stale .tmp Files

{{ $staleTmp->count() }}

bootstrap/cache/*.tmp — removed automatically on flush

Flush All Cache

Will rebuild the site mirror (DB → storage), clear the app cache, clear compiled config/route/view caches, and remove stale .tmp files.

View Laravel Log
@csrf

App Cache Keys

@forelse($appCache['keys'] as $item) @empty @endforelse
Key Status TTL
{{ $item['key'] }} @if($item['expired']) Expired @else Active @endif {{ $item['expired'] ? '-' : ($item['forever'] ? 'Never' : \Carbon\Carbon::now()->addSeconds($item['ttl'])->diffForHumans(null, true)) }}
No cache entries.
@if($appCache['more'] > 0)

+ {{ $appCache['more'] }} more keys...

@endif

Compiled Framework Caches

@php $cachedCount = $compiledCaches->where('exists', true)->count() + $routeCacheFiles->count(); $totalCount = $compiledCaches->count() + $routeCacheFiles->count(); @endphp {{ $cachedCount }}/{{ $totalCount }} cached
@foreach($compiledCaches->merge($routeCacheFiles) as $file) {{ $file['name'] }} @if($file['exists'] && $file['modified']) · {{ $file['modified'] }} @endif @endforeach

Site Mirror (storage/app/private)

@foreach($siteMirror['dirs'] as $dir) @endforeach
Folder Files Last Synced
{{ $dir['name'] }} {{ $dir['total'] }} {{ $dir['modified'] ?? '-' }}
@if($staleTmp->count() > 0)

Stale .tmp Files

@foreach($staleTmp as $tmp) @endforeach
File Size Last Modified
{{ $tmp['name'] }} {{ number_format($tmp['size'] / 1024, 1) }} KB {{ $tmp['modified'] }}
@endif
@endsection @push('scripts') @endpush