diff --git a/README.md b/README.md index f098ece..b9b4783 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,18 @@ define( 'RT_WP_NGINX_HELPER_REDIS_PORT', '6000' ); define( 'RT_WP_NGINX_HELPER_REDIS_PREFIX', 'page-cache:' ); ``` +**Q. Can I override the redis socket path, username, password?** + +Yes, you can force override the redis socket path, username, password by defining constant in wp-config.php. For example: + +```php +define( 'RT_WP_NGINX_HELPER_REDIS_UNIX_SOCKET', '/var/run/redis/redis.sock' ); + +define( 'RT_WP_NGINX_HELPER_REDIS_USERNAME', 'admin' ); + +define( 'RT_WP_NGINX_HELPER_REDIS_PASSWORD', 'admin' ); +``` + ### FAQ - Nginx Map ### **Q. My multisite already uses `WPMU_ACCEL_REDIRECT`. Do I still need Nginx Map?** @@ -123,6 +135,16 @@ Definitely. `WPMU_ACCEL_REDIRECT` reduces the load on PHP, but it still ask Word Most likely yes. A wordpress plugin, if not using explicitly any Apache-only mod, should work on Nginx. Some plugin may need some extra work. + +### FAQ - WP-CLI ### + +**Q. How can I update the options using WP-CLI?** + +```shell +wp option patch update rt_wp_nginx_helper_options +``` + + ### Still need help! ### Please post your problem in [our free support forum](https://github.com/rtCamp/nginx-helper/issues). @@ -281,7 +303,7 @@ Added custom purge URL option. * Added composer.json support * Fixed cache purging link in admin bar. * Updated the initial settings to include the 'purge_method' [#99](https://github.com/rtCamp/nginx-helper/pull/99) - by -[gagan0123](https://github.com/gagan0123) + [gagan0123](https://github.com/gagan0123) ### 1.9.2 ### diff --git a/readme.txt b/readme.txt index da2655f..20d01fa 100644 --- a/readme.txt +++ b/readme.txt @@ -106,6 +106,18 @@ define('RT_WP_NGINX_HELPER_REDIS_PORT', '6000'); define('RT_WP_NGINX_HELPER_REDIS_PREFIX', 'page-cache:'); ``` +**Q. Can I override the redis socket path, username, password?** + +Yes, you can force override the redis socket path, username, password by defining constant in wp-config.php. For example: + +```php +define( 'RT_WP_NGINX_HELPER_REDIS_UNIX_SOCKET', '/var/run/redis/redis.sock' ); + +define( 'RT_WP_NGINX_HELPER_REDIS_USERNAME', 'admin' ); + +define( 'RT_WP_NGINX_HELPER_REDIS_PASSWORD', 'admin' ); +``` + = FAQ - Nginx Map = **Q. My multisite already uses `WPMU_ACCEL_REDIRECT`. Do I still need Nginx Map?** @@ -117,6 +129,14 @@ Definitely. `WPMU_ACCEL_REDIRECT` reduces the load on PHP, but it still ask Word Most likely yes. A wordpress plugin, if not using explicitly any Apache-only mod, should work on Nginx. Some plugin may need some extra work. += FAQ - WP-CLI = + +**Q. How can I update the options using WP-CLI?** + +```shell +wp option patch update rt_wp_nginx_helper_options +``` + = Still need help! = Please post your problem in [our free support forum](https://github.com/rtCamp/nginx-helper/issues).