nuewire/cache

A safe Laravel cache management page and command for the Nuewire platform.
8
Install
composer require nuewire/cache
Latest Version:1.2.0
PHP:^8.2
License:MIT
Last Updated:Jul 29, 2026
Links: GitHub  ·  Packagist
Maintainer: novay

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: run config:clear.
  • route: run route:clear.
  • view: run view:clear.
  • event: run event: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.view
  • cache.clear

When Nuewire Logs is installed, the package records cache.cleared, cache.partially-cleared, or cache.failed audit events.

Related Packages

phpsamurai/laravel-module-maker

A Laravel package for generating modular HMVC structures with artisan commands

0 0
mosweed/laravel-auto-crud

Complete CRUD scaffolding generator for Laravel 12 with API, Blade views, Livewi...

27 0
sikessem/components

Ready-to-use components, commands, presets, and customizations for Laravel & Fil...

819 0
anousss007/vigilance

A driver-agnostic control center for Laravel queues, jobs, commands and the sche...

7,577 190