Cache and Queues
The website uses Laravel, Statamic, and optional static caching. Deployments clear and rebuild the framework caches, refresh Statamic’s stache, and restart queue workers.
Deploy-Time Cache Commands
Section titled “Deploy-Time Cache Commands”The deploy script runs these commands inside the new release before the symlink switch:
php artisan optimize:clearphp artisan statamic:stache:refreshphp artisan config:cachephp artisan route:cachephp artisan view:cacheAfter the release is live, it runs:
php artisan queue:restartIf static warming is enabled for the environment, it then runs:
php please static:warmManual Cache Refresh
Section titled “Manual Cache Refresh”Use these commands when content or configuration looks stale:
php artisan cache:clearphp artisan statamic:stache:refreshphp please static:warmUse the static warm command only when static caching is enabled for the environment. If a stale page affects only dynamic or uncached content, start with cache:clear and statamic:stache:refresh.
Queue Worker
Section titled “Queue Worker”The local Solo process definition includes:
php artisan queue:workProduction process supervision should keep the queue worker running and restart it after deploy. The deploy script uses php artisan queue:restart, which asks existing workers to restart cleanly after their current job.
If queued work stops processing:
- Check that a queue worker process is running.
- Check recent Laravel logs.
- Restart the worker through the process supervisor.
- Re-run the failed action or let the queue retry according to Laravel’s queue configuration.
Logs and Health Checks
Section titled “Logs and Health Checks”Useful local commands:
php artisan pailtail -n 50 -f storage/logs/laravel.logUseful deploy checks:
currentpoints at the expected release.current/.envpoints at shared environment configuration.current/storagepoints at shared storage.current/public/assetspoints at shared public assets.current/userspoints at shared Statamic user files.- Queue workers have restarted after deploy.
- Static warm completed if enabled for the environment.
Backups
Section titled “Backups”Backups must cover:
- the application database;
- shared Laravel storage;
- shared public assets;
- shared Statamic user account files.
The exact backup host, schedule, credentials, and restore transcripts are private operational details and should stay outside the public docs.