nuewire/cache

A safe Laravel cache management page and command for the Nuewire platform.

Maintainers

Package info

github.com/nuewire/cache

pkg:composer/nuewire/cache

Transparency log

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.1 2026-07-29 06:27 UTC

This package is auto-updated.

Last update: 2026-07-29 06:33:03 UTC


README

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.