Skip to content

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.

CommandSignatureDescription
flushmodularous:flushFlush all Modularous caches
flush:filepondmodularous:flush:filepondDelete orphaned FilePond temporary files
flush:sessionsmodularous:flush:sessionsClear 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:filepond

Resets caches and removes abandoned upload chunks so the UI is in a clean state.

Force logout everyone ​

bash
php artisan modularous:flush:sessions

Useful after a security-sensitive change (role permissions, auth config). All active sessions are invalidated; users must log in again.