diff --git a/README.md b/README.md index 70de764e..264136e8 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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). @@ -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) diff --git a/includes/class-nginx-helper.php b/includes/class-nginx-helper.php index 2922cd41..da16232a 100644 --- a/includes/class-nginx-helper.php +++ b/includes/class-nginx-helper.php @@ -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() ) { diff --git a/languages/nginx-helper.mo b/languages/nginx-helper.mo index 9731e242..d2706498 100644 Binary files a/languages/nginx-helper.mo and b/languages/nginx-helper.mo differ diff --git a/languages/nginx-helper.po b/languages/nginx-helper.po index 313e246a..55fa766c 100644 --- a/languages/nginx-helper.po +++ b/languages/nginx-helper.po @@ -2,78 +2,87 @@ # This file is distributed under the same license as the Nginx Helper plugin. msgid "" msgstr "" -"Project-Id-Version: Nginx Helper 2.2.5\n" +"Project-Id-Version: Nginx Helper 2.3.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nginx-helper\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-04-15T10:26:40+00:00\n" +"POT-Creation-Date: 2024-12-19T06:01:42+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.9.0\n" +"X-Generator: WP-CLI 2.11.0\n" "X-Domain: nginx-helper\n" #. Plugin Name of the plugin -#: admin/class-nginx-helper-admin.php:177 -#: admin/class-nginx-helper-admin.php:178 -#: admin/class-nginx-helper-admin.php:188 -#: admin/class-nginx-helper-admin.php:189 +#: nginx-helper.php +#: admin/class-nginx-helper-admin.php:183 +#: admin/class-nginx-helper-admin.php:184 +#: admin/class-nginx-helper-admin.php:194 +#: admin/class-nginx-helper-admin.php:195 msgid "Nginx Helper" msgstr "" #. Plugin URI of the plugin +#: nginx-helper.php msgid "https://rtcamp.com/nginx-helper/" msgstr "" #. Description of the plugin +#: nginx-helper.php msgid "Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does few more things." msgstr "" #. Author of the plugin +#: nginx-helper.php msgid "rtCamp" msgstr "" #. Author URI of the plugin +#: nginx-helper.php msgid "https://rtcamp.com" msgstr "" -#: admin/class-nginx-helper-admin.php:88 +#: admin/class-nginx-helper-admin.php:97 msgid "General" msgstr "" -#: admin/class-nginx-helper-admin.php:92 +#: admin/class-nginx-helper-admin.php:101 msgid "Support" msgstr "" -#: admin/class-nginx-helper-admin.php:160 +#: admin/class-nginx-helper-admin.php:166 msgid "Purging entire cache is not recommended. Would you like to continue?" msgstr "" -#: admin/class-nginx-helper-admin.php:212 +#: admin/class-nginx-helper-admin.php:218 msgid "Purge Cache" msgstr "" -#: admin/class-nginx-helper-admin.php:215 +#: admin/class-nginx-helper-admin.php:221 msgid "Purge Current Page" msgstr "" -#: admin/class-nginx-helper-admin.php:342 +#: admin/class-nginx-helper-admin.php:387 msgid "Settings" msgstr "" -#: admin/class-nginx-helper-admin.php:426 +#: admin/class-nginx-helper-admin.php:471 msgid "No items" msgstr "" -#: admin/class-nginx-helper-admin.php:437 +#: admin/class-nginx-helper-admin.php:482 msgid "Posted " msgstr "" -#: admin/class-nginx-helper-admin.php:776 +#: admin/class-nginx-helper-admin.php:825 msgid "Purge initiated" msgstr "" +#: admin/class-nginx-helper-admin.php:907 +msgid "Failed to parse the sitemap XML" +msgstr "" + #: admin/class-purger.php:691 msgid "Purging homepage (WPML) " msgstr "" @@ -236,322 +245,363 @@ msgstr "" msgid "Nginx Settings" msgstr "" -#: admin/partials/nginx-helper-general-options.php:82 +#: admin/partials/nginx-helper-general-options.php:90 msgid "Log file size must be a number." msgstr "" -#: admin/partials/nginx-helper-general-options.php:92 +#: admin/partials/nginx-helper-general-options.php:100 msgid "Settings saved." msgstr "" -#: admin/partials/nginx-helper-general-options.php:119 +#: admin/partials/nginx-helper-general-options.php:127 msgid "Purging Options" msgstr "" -#: admin/partials/nginx-helper-general-options.php:126 +#: admin/partials/nginx-helper-general-options.php:134 msgid "Enable Purge" msgstr "" -#: admin/partials/nginx-helper-general-options.php:136 +#: admin/partials/nginx-helper-general-options.php:140 +msgid "Preload Cache" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:150 msgid "Caching Method" msgstr "" -#: admin/partials/nginx-helper-general-options.php:148 +#: admin/partials/nginx-helper-general-options.php:162 msgid "nginx Fastcgi cache" msgstr "" -#: admin/partials/nginx-helper-general-options.php:150 +#: admin/partials/nginx-helper-general-options.php:164 msgid "External settings for nginx" msgstr "" -#: admin/partials/nginx-helper-general-options.php:151 +#: admin/partials/nginx-helper-general-options.php:165 msgid "requires external settings for nginx" msgstr "" -#: admin/partials/nginx-helper-general-options.php:161 +#: admin/partials/nginx-helper-general-options.php:175 msgid "Redis cache" msgstr "" -#: admin/partials/nginx-helper-general-options.php:171 +#: admin/partials/nginx-helper-general-options.php:185 msgid "Purge Method" msgstr "" -#: admin/partials/nginx-helper-general-options.php:181 -#: admin/partials/nginx-helper-general-options.php:361 +#: admin/partials/nginx-helper-general-options.php:195 +#: admin/partials/nginx-helper-general-options.php:455 msgid "when a post/page/custom post is published." msgstr "" -#: admin/partials/nginx-helper-general-options.php:191 +#: admin/partials/nginx-helper-general-options.php:205 msgid "Using a GET request to" msgstr "" -#: admin/partials/nginx-helper-general-options.php:192 +#: admin/partials/nginx-helper-general-options.php:206 msgid "(Default option)" msgstr "" #. translators: %s Nginx cache purge module link. -#: admin/partials/nginx-helper-general-options.php:203 +#: admin/partials/nginx-helper-general-options.php:217 msgid "Uses the %s module." msgstr "" -#: admin/partials/nginx-helper-general-options.php:221 +#: admin/partials/nginx-helper-general-options.php:235 msgid "Delete local server cache files" msgstr "" -#: admin/partials/nginx-helper-general-options.php:227 +#: admin/partials/nginx-helper-general-options.php:241 msgid "Checks for matching cache file in RT_WP_NGINX_HELPER_CACHE_PATH. Does not require any other modules. Requires that the cache be stored on the same server as WordPress. You must also be using the default nginx cache options (levels=1:2) and (fastcgi_cache_key \"$scheme$request_method$host$request_uri\")." msgstr "" -#: admin/partials/nginx-helper-general-options.php:242 +#: admin/partials/nginx-helper-general-options.php:256 msgid "Redis Settings" msgstr "" -#: admin/partials/nginx-helper-general-options.php:247 +#: admin/partials/nginx-helper-general-options.php:261 msgid "Hostname" msgstr "" -#: admin/partials/nginx-helper-general-options.php:254 -#: admin/partials/nginx-helper-general-options.php:269 -#: admin/partials/nginx-helper-general-options.php:284 +#: admin/partials/nginx-helper-general-options.php:268 +#: admin/partials/nginx-helper-general-options.php:290 +#: admin/partials/nginx-helper-general-options.php:314 +#: admin/partials/nginx-helper-general-options.php:329 +#: admin/partials/nginx-helper-general-options.php:344 +#: admin/partials/nginx-helper-general-options.php:360 +#: admin/partials/nginx-helper-general-options.php:378 msgid "Overridden by constant variables." msgstr "" -#: admin/partials/nginx-helper-general-options.php:262 +#: admin/partials/nginx-helper-general-options.php:276 +#: admin/partials/nginx-helper-general-options.php:299 +msgid "Overridden by unix socket path." +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:283 msgid "Port" msgstr "" -#: admin/partials/nginx-helper-general-options.php:277 +#: admin/partials/nginx-helper-general-options.php:307 +msgid "Socket Path" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:322 msgid "Prefix" msgstr "" -#: admin/partials/nginx-helper-general-options.php:297 +#: admin/partials/nginx-helper-general-options.php:337 +msgid "Database" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:353 +msgid "Username" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:369 +msgid "Password" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:391 msgid "Purging Conditions" msgstr "" -#: admin/partials/nginx-helper-general-options.php:302 +#: admin/partials/nginx-helper-general-options.php:396 msgid "Purge Homepage:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:309 +#: admin/partials/nginx-helper-general-options.php:403 msgid "when a post/page/custom post is modified or added." msgstr "" -#: admin/partials/nginx-helper-general-options.php:318 -#: admin/partials/nginx-helper-general-options.php:445 +#: admin/partials/nginx-helper-general-options.php:412 +#: admin/partials/nginx-helper-general-options.php:539 msgid "when a post (or page/custom post) is modified or added." msgstr "" -#: admin/partials/nginx-helper-general-options.php:330 +#: admin/partials/nginx-helper-general-options.php:424 msgid "when an existing post/page/custom post is modified." msgstr "" -#: admin/partials/nginx-helper-general-options.php:339 +#: admin/partials/nginx-helper-general-options.php:433 msgid "when a published post (or page/custom post) is trashed" msgstr "" -#: admin/partials/nginx-helper-general-options.php:353 +#: admin/partials/nginx-helper-general-options.php:447 msgid "Purge Post/Page/Custom Post Type:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:370 +#: admin/partials/nginx-helper-general-options.php:464 msgid "when a post is published." msgstr "" -#: admin/partials/nginx-helper-general-options.php:382 -#: admin/partials/nginx-helper-general-options.php:479 +#: admin/partials/nginx-helper-general-options.php:476 +#: admin/partials/nginx-helper-general-options.php:573 msgid "when a comment is approved/published." msgstr "" -#: admin/partials/nginx-helper-general-options.php:391 -#: admin/partials/nginx-helper-general-options.php:488 +#: admin/partials/nginx-helper-general-options.php:485 +#: admin/partials/nginx-helper-general-options.php:582 msgid "when a comment is approved/published." msgstr "" -#: admin/partials/nginx-helper-general-options.php:403 -#: admin/partials/nginx-helper-general-options.php:500 +#: admin/partials/nginx-helper-general-options.php:497 +#: admin/partials/nginx-helper-general-options.php:594 msgid "when a comment is unapproved/deleted." msgstr "" -#: admin/partials/nginx-helper-general-options.php:412 -#: admin/partials/nginx-helper-general-options.php:509 +#: admin/partials/nginx-helper-general-options.php:506 +#: admin/partials/nginx-helper-general-options.php:603 msgid "when a comment is unapproved/deleted." msgstr "" -#: admin/partials/nginx-helper-general-options.php:426 +#: admin/partials/nginx-helper-general-options.php:520 msgid "Purge Archives:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:428 +#: admin/partials/nginx-helper-general-options.php:522 msgid "(date, category, tag, author, custom taxonomies)" msgstr "" -#: admin/partials/nginx-helper-general-options.php:436 +#: admin/partials/nginx-helper-general-options.php:530 msgid "when an post/page/custom post is modified or added" msgstr "" -#: admin/partials/nginx-helper-general-options.php:457 +#: admin/partials/nginx-helper-general-options.php:551 msgid "when an existing post/page/custom post is trashed." msgstr "" -#: admin/partials/nginx-helper-general-options.php:466 +#: admin/partials/nginx-helper-general-options.php:560 msgid "when a published post (or page/custom post) is trashed." msgstr "" -#: admin/partials/nginx-helper-general-options.php:523 +#: admin/partials/nginx-helper-general-options.php:617 msgid "Purge Feeds:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:532 +#: admin/partials/nginx-helper-general-options.php:626 msgid "purge feeds" msgstr "" -#: admin/partials/nginx-helper-general-options.php:541 +#: admin/partials/nginx-helper-general-options.php:635 msgid "purge feeds along with posts & pages." msgstr "" -#: admin/partials/nginx-helper-general-options.php:554 +#: admin/partials/nginx-helper-general-options.php:649 +msgid "Purge AMP URL:" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:658 +msgid "purge amp urls" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:667 +msgid "purge amp urls along with posts & pages." +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:680 msgid "Custom Purge URL:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:560 +#: admin/partials/nginx-helper-general-options.php:686 msgid "Add one URL per line. URL should not contain domain name." msgstr "" -#: admin/partials/nginx-helper-general-options.php:563 +#: admin/partials/nginx-helper-general-options.php:689 msgid "Eg: To purge http://example.com/sample-page/ add /sample-page/ in above textarea." msgstr "" -#: admin/partials/nginx-helper-general-options.php:567 +#: admin/partials/nginx-helper-general-options.php:693 msgid "'*' will only work with redis cache server." msgstr "" -#: admin/partials/nginx-helper-general-options.php:577 +#: admin/partials/nginx-helper-general-options.php:703 msgid "Debug Options" msgstr "" -#: admin/partials/nginx-helper-general-options.php:587 +#: admin/partials/nginx-helper-general-options.php:713 msgid "Enable Nginx Map." msgstr "" -#: admin/partials/nginx-helper-general-options.php:606 +#: admin/partials/nginx-helper-general-options.php:732 msgid "Enable Logging" msgstr "" -#: admin/partials/nginx-helper-general-options.php:611 +#: admin/partials/nginx-helper-general-options.php:737 msgid "disable" msgstr "" -#: admin/partials/nginx-helper-general-options.php:617 +#: admin/partials/nginx-helper-general-options.php:743 msgid "enable" msgstr "" -#: admin/partials/nginx-helper-general-options.php:624 +#: admin/partials/nginx-helper-general-options.php:750 msgid "NOTE" msgstr "" -#: admin/partials/nginx-helper-general-options.php:625 +#: admin/partials/nginx-helper-general-options.php:751 msgid "To" msgstr "" -#: admin/partials/nginx-helper-general-options.php:627 +#: admin/partials/nginx-helper-general-options.php:753 msgid "the logging feature, you must define" msgstr "" -#: admin/partials/nginx-helper-general-options.php:628 +#: admin/partials/nginx-helper-general-options.php:754 msgid "as" msgstr "" -#: admin/partials/nginx-helper-general-options.php:630 +#: admin/partials/nginx-helper-general-options.php:756 msgid "in your" msgstr "" -#: admin/partials/nginx-helper-general-options.php:641 +#: admin/partials/nginx-helper-general-options.php:767 msgid "Enable Nginx Timestamp in HTML" msgstr "" -#: admin/partials/nginx-helper-general-options.php:655 +#: admin/partials/nginx-helper-general-options.php:781 msgid "Nginx Map" msgstr "" -#: admin/partials/nginx-helper-general-options.php:664 +#: admin/partials/nginx-helper-general-options.php:790 msgid "Can't write on map file." msgstr "" #. translators: %s file url. -#: admin/partials/nginx-helper-general-options.php:669 -#: admin/partials/nginx-helper-general-options.php:741 +#: admin/partials/nginx-helper-general-options.php:795 +#: admin/partials/nginx-helper-general-options.php:867 msgid "Check you have write permission on %s" msgstr "" -#: admin/partials/nginx-helper-general-options.php:686 +#: admin/partials/nginx-helper-general-options.php:812 msgid "Nginx Map path to include in nginx settings" msgstr "" -#: admin/partials/nginx-helper-general-options.php:687 +#: admin/partials/nginx-helper-general-options.php:813 msgid "(recommended)" msgstr "" -#: admin/partials/nginx-helper-general-options.php:700 +#: admin/partials/nginx-helper-general-options.php:826 msgid "Or," msgstr "" -#: admin/partials/nginx-helper-general-options.php:701 +#: admin/partials/nginx-helper-general-options.php:827 msgid "Text to manually copy and paste in nginx settings" msgstr "" -#: admin/partials/nginx-helper-general-options.php:702 +#: admin/partials/nginx-helper-general-options.php:828 msgid "(if your network is small and new sites are not added frequently)" msgstr "" -#: admin/partials/nginx-helper-general-options.php:720 +#: admin/partials/nginx-helper-general-options.php:846 msgid "Logging Options" msgstr "" -#: admin/partials/nginx-helper-general-options.php:736 +#: admin/partials/nginx-helper-general-options.php:862 msgid "Can't write on log file." msgstr "" -#: admin/partials/nginx-helper-general-options.php:758 +#: admin/partials/nginx-helper-general-options.php:884 msgid "Logs path" msgstr "" -#: admin/partials/nginx-helper-general-options.php:770 +#: admin/partials/nginx-helper-general-options.php:896 msgid "View Log" msgstr "" -#: admin/partials/nginx-helper-general-options.php:775 +#: admin/partials/nginx-helper-general-options.php:901 msgid "Log" msgstr "" -#: admin/partials/nginx-helper-general-options.php:782 +#: admin/partials/nginx-helper-general-options.php:908 msgid "Log level" msgstr "" -#: admin/partials/nginx-helper-general-options.php:787 +#: admin/partials/nginx-helper-general-options.php:913 msgid "None" msgstr "" -#: admin/partials/nginx-helper-general-options.php:788 +#: admin/partials/nginx-helper-general-options.php:914 msgid "Info" msgstr "" -#: admin/partials/nginx-helper-general-options.php:789 +#: admin/partials/nginx-helper-general-options.php:915 msgid "Warning" msgstr "" -#: admin/partials/nginx-helper-general-options.php:790 +#: admin/partials/nginx-helper-general-options.php:916 msgid "Error" msgstr "" -#: admin/partials/nginx-helper-general-options.php:797 +#: admin/partials/nginx-helper-general-options.php:923 msgid "Max log file size" msgstr "" -#: admin/partials/nginx-helper-general-options.php:803 +#: admin/partials/nginx-helper-general-options.php:929 msgid "Mb" msgstr "" -#: admin/partials/nginx-helper-general-options.php:820 +#: admin/partials/nginx-helper-general-options.php:946 msgid "Save All Changes" msgstr "" @@ -653,6 +703,6 @@ msgid "Sorry, you need to be an administrator to use Nginx Helper" msgstr "" #. translators: %s is Minimum WP version. -#: includes/class-nginx-helper.php:311 +#: includes/class-nginx-helper.php:314 msgid "Sorry, Nginx Helper requires WordPress %s or higher" msgstr "" diff --git a/nginx-helper.php b/nginx-helper.php index b51e3c98..7c4d0225 100644 --- a/nginx-helper.php +++ b/nginx-helper.php @@ -3,13 +3,13 @@ * Plugin Name: Nginx Helper * Plugin URI: https://rtcamp.com/nginx-helper/ * Description: Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does few more things. - * Version: 2.2.5 + * Version: 2.3.0 * Author: rtCamp * Author URI: https://rtcamp.com * Text Domain: nginx-helper * Domain Path: /languages * Requires at least: 3.0 - * Tested up to: 6.4 + * Tested up to: 6.7 * * @link https://rtcamp.com/nginx-helper/ * @since 2.0.0 diff --git a/readme.txt b/readme.txt index 6e4d290d..20d01fa4 100644 --- a/readme.txt +++ b/readme.txt @@ -5,8 +5,8 @@ Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, License: GPLv2 or later (of-course) License URI: http://www.gnu.org/licenses/gpl-2.0.html Requires at least: 3.0 -Tested up to: 6.1 -Stable tag: 2.2.5 +Tested up to: 6.7 +Stable tag: 2.3.0 Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things. @@ -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). @@ -127,6 +147,16 @@ 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) * Fix undefined port error when Redis port is set to empty string. [#333](https://github.com/rtCamp/nginx-helper/issues/333) - by [Amaan Khan](https://github.com/pathan-amaankhan)