Flush Commands ​
Flush runtime state — caches, FilePond temporary uploads, and sessions. These commands complement the Cache commands: the Cache group manages Modularous own versioned cache, while Flush clears broader runtime artefacts that accumulate during development and operation.
| Command | Signature | Description |
|---|---|---|
| flush | modularous:flush | Flush all Modularous caches |
| flush:filepond | modularous:flush:filepond | Delete orphaned FilePond temporary files |
| flush:sessions | modularous:flush:sessions | Clear session data (supports multiple drivers) |
Common Workflows ​
Scheduled housekeeping ​
Add to your scheduler (app/Console/Kernel.php or routes/console.php):
php
Schedule::command('modularous:flush:filepond')->daily();
Schedule::command('modularous:flush:sessions')->weekly();FilePond leaves temporary upload chunks when users abandon forms — clear them daily. Sessions usually self-expire but can accumulate in the file driver.
After clearing data during local dev ​
bash
php artisan modularous:flush
php artisan modularous:flush:filepondResets caches and removes abandoned upload chunks so the UI is in a clean state.
Force logout everyone ​
bash
php artisan modularous:flush:sessionsUseful after a security-sensitive change (role permissions, auth config). All active sessions are invalidated; users must log in again.
Related ​
- Cache commands — targeted clear/warm/inspect
- HasFileponds — what
flush:filepondworks against