nuewire/cache
Nuewire Cache
Granular Laravel cache management for the Nuewire platform.
Install
composer require nuewire/cache
php artisan nuewire:cache:install
php artisan optimize:clear
With nuewire/platform 2, the page is registered under Plugin → Tools → Clear Cache at /admin/plugin/clear-cache. Mount the page directly when Platform is not installed:
<livewire:nuewire-cache />
Supported targets
application: flush the configured Laravel cache store.config: runconfig:clear.route: runroute:clear.view: runview:clear.event: runevent:clear.permission: call Spatie PermissionRegistrar when available.
Application cache is intentionally not selected by default. Flushing a shared cache store can remove sessions, rate limits, password-reset tokens, queue overflow payloads, or application data.
CLI
php artisan nuewire:cache:clear
php artisan nuewire:cache:clear config route view event
php artisan nuewire:cache:clear permission
php artisan nuewire:cache:clear --all
php artisan nuewire:cache:clear --all --force # required in production by default
Configuration
The published file is config/nuewire/cache.php. Set a dedicated application cache store when necessary:
NUEWIRE_CACHE_APPLICATION_STORE=redis
The package never accepts arbitrary Artisan command names. Targets are mapped through a fixed enum allowlist and cache clearing is guarded by a process lock.
Permissions
cache.viewcache.clear
When Nuewire Logs is installed, the package records cache.cleared, cache.partially-cleared, or cache.failed audit events.
Related Packages
A Laravel package for generating modular HMVC structures with artisan commands
Complete CRUD scaffolding generator for Laravel 12 with API, Blade views, Livewi...
A powerful Laravel scaffolding package — generate Models, Controllers, Repositor...
Ready-to-use components, commands, presets, and customizations for Laravel & Fil...
A driver-agnostic control center for Laravel queues, jobs, commands and the sche...