mirror of
https://git.yylx.win/https://github.com/nielspeen/freescout-redis-driver.git
synced 2025-11-23 18:05:47 +08:00
Redis driver for FreeScout
| Http | ||
| Providers | ||
| Public | ||
| Services | ||
| composer.json | ||
| LICENSE | ||
| module.json | ||
| README.md | ||
| start.php | ||
FreeScout Redis Driver
Enable Redis caching and queues for FreeScout.
Inspired by #4650.
Installation
- Ensure Redis server is installed.
- Ensure phpredis (not predis) module for PHP is installed. (Both PHP-FPM and the PHP cli!)
- Double-check your Redis settings in
config/database.php. It must use phpredis, not predis. - Add to your .env:
CACHE_DRIVER=redis CACHE_PREFIX=freescout QUEUE_DRIVER=redis # Session drivers in FreeScout appear to be broken or incompatible with PHP 8. Only file and database drivers work. # SESSION_DRIVER=redis - Activate the Redis Driver module.
- Run php artisan
freescout:clear-cache.
PHP Warning!
When using PHP 8.4 you will see deprecation warnings, even when you have those disabled! This will interfere with your mail fetching!
This is a bug specific to PHP 8.4: https://github.com/php/php-src/issues/17422
Please use PHP 8.1-8.3 or 8.5+.
Verify
You may start redis-cli and run KEYS freescout:* to check that the redis cache is being used.
FAQ
- Why phpredis, not predis? Using phpredis requires us to install a driver in PHP only. This removes the maintenance burden that comes with adding predis to FreeScout.