-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Username, Password, Database and Unix Socket support. #352
base: develop
Are you sure you want to change the base?
Conversation
'redis_unix_socket' => '', | ||
'redis_database' => 0, | ||
'redis_username' => '', | ||
'redis_password' => '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the indentation
$data['redis_hostname'] = RT_WP_NGINX_HELPER_REDIS_HOSTNAME; | ||
$data['redis_port'] = RT_WP_NGINX_HELPER_REDIS_PORT; | ||
$data['redis_prefix'] = RT_WP_NGINX_HELPER_REDIS_PREFIX; | ||
$data['redis_database'] = defined('RT_WP_NGINX_HELPER_REDIS_DATABASE') ? RT_WP_NGINX_HELPER_REDIS_DATABASE : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation
|
||
$hostname = empty( $nginx_helper_admin->options['redis_unix_socket'] ) ? $nginx_helper_admin->options['redis_hostname'] : $nginx_helper_admin->options['redis_unix_socket']; | ||
$port = empty( $nginx_helper_admin->options['redis_unix_socket'] ) ? $nginx_helper_admin->options['redis_port'] : 0; | ||
|
||
$this->redis_object->connect( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my local setup, there’s no Nginx server or Redis installed. When I switch branches from master to your branch, the code throws a fatal error. The plugin is trying to connect, but the connection is being refused. If the plugin is attempting to make a connection, there should also be a fatal error in the master branch.
Please take a look into this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SH4LIN I am unable to replicate the issue on my end. Can you please share the error here if possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
@@ -22,6 +22,12 @@ | |||
'redis_hostname', | |||
'redis_port', | |||
'redis_prefix', | |||
'redis_database', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the indentation
</td> | ||
</tr> | ||
<tr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the indentation and use tabs instead of the space
Description
The aim of this PR is to add support for including the Username, Password, Database and Unix Socket Path for Redis.
Type
Reference Issue
Screenshots
Testing
The code has been tested locally and is working as expected.