Skip to content
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 the FAQ for new Redis Constants #375

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?**
Expand All @@ -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 <option_name> <option_value>
```


### Still need help! ###

Please post your problem in [our free support forum](https://github.com/rtCamp/nginx-helper/issues).
Expand Down
20 changes: 20 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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?**
Expand All @@ -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 <option_name> <option_value>
```

= Still need help! =

Please post your problem in [our free support forum](https://github.com/rtCamp/nginx-helper/issues).
Expand Down
Loading