38 lines
2.2 KiB
PHP
38 lines
2.2 KiB
PHP
<x-filament-panels::page>
|
|
<div class="grid gap-4 sm:grid-cols-2">
|
|
<x-filament::section heading="前台页面缓存" :description="'当前缓存页面数:'.$this->page_cache_count">
|
|
<p class="text-sm text-gray-500 dark:text-gray-400">
|
|
匿名访客的首页/列表/文章/归档等页面按 URL 缓存(TTL {{ config('blog.page_cache_ttl') }} 秒),
|
|
文章浏览量由独立端点统计,不受缓存影响。发布/编辑文章后建议清空本缓存。
|
|
</p>
|
|
<div class="mt-4">
|
|
<x-filament::button color="primary" wire:click="flushPages">清空页面缓存</x-filament::button>
|
|
</div>
|
|
</x-filament::section>
|
|
|
|
<x-filament::section heading="侧边栏与设置缓存">
|
|
<p class="text-sm text-gray-500 dark:text-gray-400">
|
|
侧边栏(分类/最新文章/评论/标签/友链/统计)与站点设置、附件映射的缓存,最长 1 小时。
|
|
</p>
|
|
<div class="mt-4 flex gap-2">
|
|
<x-filament::button color="gray" wire:click="flushSidebar">清空侧边栏</x-filament::button>
|
|
<x-filament::button color="gray" wire:click="flushSettings">清空设置</x-filament::button>
|
|
</div>
|
|
</x-filament::section>
|
|
|
|
<x-filament::section heading="全部缓存">
|
|
<p class="text-sm text-gray-500 dark:text-gray-400">清空应用全部缓存(含上述所有 + 其他临时缓存)。</p>
|
|
<div class="mt-4">
|
|
<x-filament::button color="danger" wire:click="flushAll" wire:confirm="确定清空全部缓存?">清空全部缓存</x-filament::button>
|
|
</div>
|
|
</x-filament::section>
|
|
|
|
<x-filament::section heading="编译缓存">
|
|
<p class="text-sm text-gray-500 dark:text-gray-400">清除并重建 Blade 视图 / 路由 / 配置编译缓存(发布或更新代码后使用)。</p>
|
|
<div class="mt-4">
|
|
<x-filament::button color="gray" wire:click="recompile">重建编译缓存</x-filament::button>
|
|
</div>
|
|
</x-filament::section>
|
|
</div>
|
|
</x-filament-panels::page>
|