I just added a merge request with #
Redis backend support for session storage.
https://framagit.org/hubzilla/core/-/merge_requests/1926This can be useful for improving the performance of low-end #
Hubzilla servers as well as in the case of limited bandwidth of the disk subsystem.
In opposite to the PHP sessions implementation which also can use Redis, new code completely supports the same logic as our default SQL sessions backend do.
Redis usage may be enable with the standard PHP "session_custom" and related configuration variables (of course you need to have both Redis server and "pecl-redis" PHP extension installed first) in the
.htconfig.php
file:
// Use Redis to store sessions
App::$config['system']['session_custom'] = true;
App::$config['system']['session_save_handler'] = "redis";
App::$config['system']['session_save_path'] = "/tmp/redis.sock";
Connection thru TCP sockets and URL-based variables for timeouts and authentication also supported, for example:
...
App::$config['system']['session_save_path'] = "tcp://1.2.3.4:6379?timeout=2&auth=accesskey";
It should also now is possible to implement an additional custom session backends using the same approach.
#
development