i want to php artisan cache:clear and also want to not remove/empty laravel horizon dashboard
my horizon package is "laravel/horizon": "^5.15"
my env variable is like bellow
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
REDIS_CLIENT=predis
REDIS_KEY=oqmm
REDIS_DATABASE=10
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
also my local configuration is like bellow
`'local' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default'],
'balance' => 'auto',
'processes' => 3,
'tries' => 3,
],
],`
i change this env variable for database driver but it's not working and not showing any data in horizon dashboad
QUEUE_CONNECTION=database
is that any solution or any other way to view GUI for job queue ?
You can use a separate cache driver for the Horizon dashboard data. You can do this by adding the following configuration to your config/horizon.php file:
Then add a new connection configuration for your database driver in config/database.php .This is an example configuration for a MySQL database
Then clear your cache