Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

t0berius's avatar

laravel caching / native PHP caching

I'm running two applications (1x laravel, 1x another PHP based application) on the same server. For the second application I require redis session storage too, so I set:

session.save_handler = redis
session.save_path = "tcp://127.0.0.1:6379"

inside the php.ini. After this I installed the required php-redis package.

Inside laravel .env I use

CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PORT=6379

May this cause any problems in general? It's working fine at the moment, but it seems to pass over the laravel CACHE_DRIVER=redis somehow?

0 likes
0 replies

Please or to participate in this conversation.