Skip to content

Cache & queue settings

Last updated Sep 5, 2026

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.

Cache configuration (Redis)

Buzzy uses akbilisim/buzzy-model-cache to cache Eloquent queries, menu trees, category hierarchies, and rendered widgets.

Redis parameters

  • 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 0 to 15 (e.g. 0 for cache, 1 for sessions).

Queue settings and background workers

Operations such as AI content generation, transactional emails, media optimization, RSS automated fetching, and sitemap regeneration should never block HTTP web requests.

Supported queue connections

  1. Redis (Recommended for Production): In-memory queue broker delivering near-zero latency dispatching and native orchestration with Laravel Horizon.
  2. Database: Uses your MySQL database jobs table. Ideal for shared hosting environments where Redis or continuous background daemons are unavailable.
  3. 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): Processes high and default queues with a 60-second timeout.
  • supervisor-media (redis): Processes media generation 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=4200

Alternative: Standard queue workers with Supervisor

If 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=4200

Queues on shared hosting (Without Supervisor)

On shared hosting environments (such as cPanel or Plesk) where Supervisor and persistent background processes cannot be installed:

  1. Set the Queue Connection to database in Settings > Queue Settings (or QUEUE_CONNECTION=database in your .env file).
  2. 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
  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

Was this helpful?