I wrote a sample script to extend the Redis caching to support auth here: Custom implementation of Sugar redis cache, using authentication
To deploy it
- use the path: "custom/include/SugarCache/CustomSugarCacheRedis.php"
- add on config_override.php $sugar_config['external_cache']['redis']['auth'] = '<your redis auth password>';
- repair the system, so that Sugar picks up the custom file
If you need Redis to ALSO store sessions, on php.ini add:
- session.save_handler=redis
- session.save_path="tcp://<hostname>:<port>?auth=<auth>"
Cheers
Maybe it is nice to note that you have to leave session_dir Parameter untouched in config.php.
It costed me several hours of thinking about why I could not login while running redis