faysal0x1 / cache-module
Automatic cache invalidation module for Laravel domains using model observers.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:laravel-module
pkg:composer/faysal0x1/cache-module
Requires
- php: ^8.2
- nwidart/laravel-modules: ^11.0 || ^12.0
This package is not auto-updated.
Last update: 2026-01-06 05:50:41 UTC
README
A reusable cache invalidation module for Laravel applications. It wires up observers for Product, Brand, Category, and SubCategory models to keep caches in sync automatically. Built on top of nwidart/laravel-modules.
Installation
composer require nwidart/laravel-modules
composer require joshbrw/laravel-module-installer
composer require faysal0x1/cache-module
php artisan module:enable Cache
php artisan optimize:clear
Once enabled, the observers will begin listening for model changes without additional setup.
License
MIT