Skip to content

nielspeen/RedisDriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: php/php-src#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.

About

Redis driver for FreeScout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages