To achieve sub-second load times and withstand viral traffic spikes of millions of monthly pageviews, Buzzy features deep Redis caching and asynchronous queue workers.
Configure these services under Settings > Cache Settings and Queue Settings.
Buzzy uses akbilisim/buzzy-model-cache to cache Eloquent queries, menu trees, category hierarchies, and rendered widgets.
- Cache Driver:
redis - Redis Host: Hostname or IP address of your Redis server (e.g.
127.0.0.1). - Redis Port: Typically
6379. - Redis Password: Authentication password (leave empty if your Redis server does not require authentication).
- Redis Database: Integer index from
0to15(e.g.0for cache,1for sessions).
Operations such as AI content generation, transactional emails, media optimization, RSS automated fetching, and sitemap regeneration should never block HTTP web requests.
- Redis (Recommended for Production): In-memory queue broker delivering near-zero latency dispatching and native orchestration with Laravel Horizon.
- Database: Uses your MySQL database
jobstable. Ideal for shared hosting environments where Redis or continuous background daemons are unavailable. - Sync: Executes jobs synchronously within the HTTP request. Recommended only for local development.
Buzzy includes native integration with Laravel Horizon. Buzzy leverages multiple specialized queue pipelines to ensure heavy workloads never delay standard requests:
supervisor-main(redis): Processeshighanddefaultqueues with a 60-second timeout.supervisor-media(redis): Processesmediageneration and image optimization with a 300-second timeout and 256 MB memory limit.supervisor-low(redis-long-running): Processes long-running maintenance, package updates, and backups (cleanup,backup,extensions,long-running) with a 3660-second timeout.
Starting Horizon via php artisan horizon automatically provisions and balances all three supervisors.
To keep Horizon running continuously on your VPS or dedicated server, configure Supervisor:
[program:buzzy-horizon]
process_name=%(program_name)s
command=/usr/bin/php /var/www/buzzy/artisan horizon
directory=/var/www/buzzy
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
redirect_stderr=true
stdout_logfile=/var/www/buzzy/storage/logs/horizon.log
stopwaitsecs=4200If you run standalone queue workers without Horizon, you must configure workers that listen to Buzzy's active queue names rather than only the default queue:
[program:buzzy-worker]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /var/www/buzzy/artisan queue:work redis --queue=high,default,media --sleep=3 --tries=3 --max-time=3600 --timeout=300
directory=/var/www/buzzy
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/buzzy/storage/logs/worker.log
stopwaitsecs=3600
[program:buzzy-long-running-worker]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /var/www/buzzy/artisan queue:work redis-long-running --queue=cleanup,backup,extensions,long-running --sleep=3 --tries=3 --timeout=3660
directory=/var/www/buzzy
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/buzzy/storage/logs/long-running-worker.log
stopwaitsecs=4200On shared hosting environments (such as cPanel or Plesk) where Supervisor and persistent background processes cannot be installed:
- Set the Queue Connection to
databasein Settings > Queue Settings (orQUEUE_CONNECTION=databasein your.envfile). - Configure a standard cron job in your hosting control panel to trigger the Laravel scheduler every minute:
* * * * * cd /home/username/public_html && php artisan schedule:run >> /dev/null 2>&1- To process queued jobs on shared hosts without waiting for the scheduler, configure a separate cron task that processes jobs across all queues until empty:
* * * * * cd /home/username/public_html && php artisan queue:work database --queue=high,default,media --stop-when-empty >> /dev/null 2>&1