Skip to content
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

**Requires at least:** 3.0

**Tested up to:** 6.1
**Tested up to:** 6.7

**Stable tag:** 2.2.5
**Stable tag:** 2.3.0

**License:** GPLv2 or later (of-course)

Expand Down 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?**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Vedant-Gandhi, Why does the current master PR have more changes than our develop PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pathan-Amaankhan I have added the FAQ in Readme for new redis constants introduced in the new plugin version.

Copy link
Member

@Pathan-Amaankhan Pathan-Amaankhan Dec 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we added this on develop?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay will add it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ref - #375


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 All @@ -139,6 +161,15 @@ Please post your problem in [our free support forum](https://github.com/rtCamp/n

## Changelog ##

### 2.3.0 ###

* Disable the purge functionality when importing data. [#52](https://github.com/rtCamp/nginx-helper/pull/52) - by [Vedant Gandhi](https://github.com/Vedant-Gandhi)
* Added option to preload cache for all Post and Pages. [#47](https://github.com/rtCamp/nginx-helper/pull/47) - by [Vedant Gandhi](https://github.com/Vedant-Gandhi)
* Added the capability to purge Amp URL's. [#135](https://github.com/rtCamp/nginx-helper/pull/135) - by [Vedant Gandhi](https://github.com/Vedant-Gandhi)
* Add support for adding Username, Password support for Redis. It also includes the support for Unix Socket Path for Redis along with Database selection. [#343](https://github.com/rtCamp/nginx-helper/pull/343),[#350](https://github.com/rtCamp/nginx-helper/pull/350) - by [Vedant Gandhi](https://github.com/Vedant-Gandhi)
* Add capability to allow modifying options using WP-CLI. [#307](https://github.com/rtCamp/nginx-helper/pull/307) - by [Vedant Gandhi](https://github.com/Vedant-Gandhi)
* Fix the plugin crash issue due to internationalization after upgrading to WordPress Version 6.7. [#364](https://github.com/rtCamp/nginx-helper/pull/364) - by [Vedant Gandhi](https://github.com/Vedant-Gandhi)

### 2.2.5 ###

* Add the capability to enable/disable purging of feeds. [#281](https://github.com/rtCamp/nginx-helper/issues/281) - by [Amaan Khan](https://github.com/pathan-amaankhan)
Expand Down
2 changes: 1 addition & 1 deletion includes/class-nginx-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Nginx_Helper {
public function __construct() {

$this->plugin_name = 'nginx-helper';
$this->version = '2.2.5';
$this->version = '2.3.0';
$this->minimum_wp = '3.0';

if ( ! $this->required_wp_version() ) {
Expand Down
Binary file modified languages/nginx-helper.mo
Binary file not shown.
Loading
Loading