From 774cc46bc79fc84d5b144f36d7318066b99a406c Mon Sep 17 00:00:00 2001 From: Amaan Khan Date: Tue, 16 Apr 2024 10:09:14 +0530 Subject: [PATCH 1/2] feat: bumps plugin version to 2.2.5 --- README.md | 9 +- includes/class-nginx-helper.php | 2 +- languages/nginx-helper.mo | Bin 427 -> 471 bytes languages/nginx-helper.po | 192 +++++++++++++++++--------------- nginx-helper.php | 2 +- readme.txt | 8 +- 6 files changed, 117 insertions(+), 96 deletions(-) diff --git a/README.md b/README.md index 567c605..fee3ca7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Nginx Helper # [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) -**Contributors:** rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase, sid177, souptik, arafatkn, subscriptiongroup +**Contributors:** rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase, sid177, souptik, arafatkn, subscriptiongroup, akrocks **Tags:** nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks @@ -9,7 +9,7 @@ **Tested up to:** 6.1 -**Stable tag:** 2.2.3 +**Stable tag:** 2.2.5 **License:** GPLv2 or later (of-course) @@ -139,6 +139,11 @@ Please post your problem in [our free support forum](https://github.com/rtCamp/n ## Changelog ## +### 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) + ### 2.2.4 ### * Introduces the capability to specify the `NGINX_HELPER_LOG` constant, allowing users to activate the logging feature. [#318](https://github.com/rtCamp/nginx-helper/pull/318) - by [Vishal Kakadiya](https://github.com/vishalkakadiya) diff --git a/includes/class-nginx-helper.php b/includes/class-nginx-helper.php index 02e7e3c..f96e6d0 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.4'; + $this->version = '2.2.5'; $this->minimum_wp = '3.0'; if ( ! $this->required_wp_version() ) { diff --git a/languages/nginx-helper.mo b/languages/nginx-helper.mo index 8b700037ad486315a298f1a33517f404d15b5b9b..9731e2429ca2b94ce557d88369b278243394c1af 100644 GIT binary patch delta 145 zcmZ3@e4TlMh$sUP=zs_y0MRQM85ndYnrbqdPK^Je6{720l$uzQnV+ZYl30>zrC?-W zWTIh5KI67 diff --git a/languages/nginx-helper.po b/languages/nginx-helper.po index 71ec888..313e246 100644 --- a/languages/nginx-helper.po +++ b/languages/nginx-helper.po @@ -2,16 +2,16 @@ # This file is distributed under the same license as the Nginx Helper plugin. msgid "" msgstr "" -"Project-Id-Version: Nginx Helper 2.2.4\n" +"Project-Id-Version: Nginx Helper 2.2.5\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-01-17T06:18:22+00:00\n" +"POT-Creation-Date: 2024-04-15T10:26:40+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.8.1\n" +"X-Generator: WP-CLI 2.9.0\n" "X-Domain: nginx-helper\n" #. Plugin Name of the plugin @@ -58,19 +58,19 @@ msgstr "" msgid "Purge Current Page" msgstr "" -#: admin/class-nginx-helper-admin.php:341 +#: admin/class-nginx-helper-admin.php:342 msgid "Settings" msgstr "" -#: admin/class-nginx-helper-admin.php:425 +#: admin/class-nginx-helper-admin.php:426 msgid "No items" msgstr "" -#: admin/class-nginx-helper-admin.php:436 +#: admin/class-nginx-helper-admin.php:437 msgid "Posted " msgstr "" -#: admin/class-nginx-helper-admin.php:775 +#: admin/class-nginx-helper-admin.php:776 msgid "Purge initiated" msgstr "" @@ -236,310 +236,322 @@ msgstr "" msgid "Nginx Settings" msgstr "" -#: admin/partials/nginx-helper-general-options.php:62 +#: admin/partials/nginx-helper-general-options.php:82 msgid "Log file size must be a number." msgstr "" -#: admin/partials/nginx-helper-general-options.php:72 +#: admin/partials/nginx-helper-general-options.php:92 msgid "Settings saved." msgstr "" -#: admin/partials/nginx-helper-general-options.php:99 +#: admin/partials/nginx-helper-general-options.php:119 msgid "Purging Options" msgstr "" -#: admin/partials/nginx-helper-general-options.php:106 +#: admin/partials/nginx-helper-general-options.php:126 msgid "Enable Purge" msgstr "" -#: admin/partials/nginx-helper-general-options.php:116 +#: admin/partials/nginx-helper-general-options.php:136 msgid "Caching Method" msgstr "" -#: admin/partials/nginx-helper-general-options.php:128 +#: admin/partials/nginx-helper-general-options.php:148 msgid "nginx Fastcgi cache" msgstr "" -#: admin/partials/nginx-helper-general-options.php:130 +#: admin/partials/nginx-helper-general-options.php:150 msgid "External settings for nginx" msgstr "" -#: admin/partials/nginx-helper-general-options.php:131 +#: admin/partials/nginx-helper-general-options.php:151 msgid "requires external settings for nginx" msgstr "" -#: admin/partials/nginx-helper-general-options.php:141 +#: admin/partials/nginx-helper-general-options.php:161 msgid "Redis cache" msgstr "" -#: admin/partials/nginx-helper-general-options.php:151 +#: admin/partials/nginx-helper-general-options.php:171 msgid "Purge Method" msgstr "" -#: admin/partials/nginx-helper-general-options.php:161 -#: admin/partials/nginx-helper-general-options.php:341 +#: admin/partials/nginx-helper-general-options.php:181 +#: admin/partials/nginx-helper-general-options.php:361 msgid "when a post/page/custom post is published." msgstr "" -#: admin/partials/nginx-helper-general-options.php:171 +#: admin/partials/nginx-helper-general-options.php:191 msgid "Using a GET request to" msgstr "" -#: admin/partials/nginx-helper-general-options.php:172 +#: admin/partials/nginx-helper-general-options.php:192 msgid "(Default option)" msgstr "" #. translators: %s Nginx cache purge module link. -#: admin/partials/nginx-helper-general-options.php:183 +#: admin/partials/nginx-helper-general-options.php:203 msgid "Uses the %s module." msgstr "" -#: admin/partials/nginx-helper-general-options.php:201 +#: admin/partials/nginx-helper-general-options.php:221 msgid "Delete local server cache files" msgstr "" -#: admin/partials/nginx-helper-general-options.php:207 +#: admin/partials/nginx-helper-general-options.php:227 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:222 +#: admin/partials/nginx-helper-general-options.php:242 msgid "Redis Settings" msgstr "" -#: admin/partials/nginx-helper-general-options.php:227 +#: admin/partials/nginx-helper-general-options.php:247 msgid "Hostname" msgstr "" -#: admin/partials/nginx-helper-general-options.php:234 -#: admin/partials/nginx-helper-general-options.php:249 -#: admin/partials/nginx-helper-general-options.php:264 +#: admin/partials/nginx-helper-general-options.php:254 +#: admin/partials/nginx-helper-general-options.php:269 +#: admin/partials/nginx-helper-general-options.php:284 msgid "Overridden by constant variables." msgstr "" -#: admin/partials/nginx-helper-general-options.php:242 +#: admin/partials/nginx-helper-general-options.php:262 msgid "Port" msgstr "" -#: admin/partials/nginx-helper-general-options.php:257 +#: admin/partials/nginx-helper-general-options.php:277 msgid "Prefix" msgstr "" -#: admin/partials/nginx-helper-general-options.php:277 +#: admin/partials/nginx-helper-general-options.php:297 msgid "Purging Conditions" msgstr "" -#: admin/partials/nginx-helper-general-options.php:282 +#: admin/partials/nginx-helper-general-options.php:302 msgid "Purge Homepage:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:289 +#: admin/partials/nginx-helper-general-options.php:309 msgid "when a post/page/custom post is modified or added." msgstr "" -#: admin/partials/nginx-helper-general-options.php:298 -#: admin/partials/nginx-helper-general-options.php:425 +#: admin/partials/nginx-helper-general-options.php:318 +#: admin/partials/nginx-helper-general-options.php:445 msgid "when a post (or page/custom post) is modified or added." msgstr "" -#: admin/partials/nginx-helper-general-options.php:310 +#: admin/partials/nginx-helper-general-options.php:330 msgid "when an existing post/page/custom post is modified." msgstr "" -#: admin/partials/nginx-helper-general-options.php:319 +#: admin/partials/nginx-helper-general-options.php:339 msgid "when a published post (or page/custom post) is trashed" msgstr "" -#: admin/partials/nginx-helper-general-options.php:333 +#: admin/partials/nginx-helper-general-options.php:353 msgid "Purge Post/Page/Custom Post Type:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:350 +#: admin/partials/nginx-helper-general-options.php:370 msgid "when a post is published." msgstr "" -#: admin/partials/nginx-helper-general-options.php:362 -#: admin/partials/nginx-helper-general-options.php:459 +#: admin/partials/nginx-helper-general-options.php:382 +#: admin/partials/nginx-helper-general-options.php:479 msgid "when a comment is approved/published." msgstr "" -#: admin/partials/nginx-helper-general-options.php:371 -#: admin/partials/nginx-helper-general-options.php:468 +#: admin/partials/nginx-helper-general-options.php:391 +#: admin/partials/nginx-helper-general-options.php:488 msgid "when a comment is approved/published." msgstr "" -#: admin/partials/nginx-helper-general-options.php:383 -#: admin/partials/nginx-helper-general-options.php:480 +#: admin/partials/nginx-helper-general-options.php:403 +#: admin/partials/nginx-helper-general-options.php:500 msgid "when a comment is unapproved/deleted." msgstr "" -#: admin/partials/nginx-helper-general-options.php:392 -#: admin/partials/nginx-helper-general-options.php:489 +#: admin/partials/nginx-helper-general-options.php:412 +#: admin/partials/nginx-helper-general-options.php:509 msgid "when a comment is unapproved/deleted." msgstr "" -#: admin/partials/nginx-helper-general-options.php:406 +#: admin/partials/nginx-helper-general-options.php:426 msgid "Purge Archives:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:408 +#: admin/partials/nginx-helper-general-options.php:428 msgid "(date, category, tag, author, custom taxonomies)" msgstr "" -#: admin/partials/nginx-helper-general-options.php:416 +#: admin/partials/nginx-helper-general-options.php:436 msgid "when an post/page/custom post is modified or added" msgstr "" -#: admin/partials/nginx-helper-general-options.php:437 +#: admin/partials/nginx-helper-general-options.php:457 msgid "when an existing post/page/custom post is trashed." msgstr "" -#: admin/partials/nginx-helper-general-options.php:446 +#: admin/partials/nginx-helper-general-options.php:466 msgid "when a published post (or page/custom post) is trashed." msgstr "" -#: admin/partials/nginx-helper-general-options.php:502 +#: admin/partials/nginx-helper-general-options.php:523 +msgid "Purge Feeds:" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:532 +msgid "purge feeds" +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:541 +msgid "purge feeds along with posts & pages." +msgstr "" + +#: admin/partials/nginx-helper-general-options.php:554 msgid "Custom Purge URL:" msgstr "" -#: admin/partials/nginx-helper-general-options.php:508 +#: admin/partials/nginx-helper-general-options.php:560 msgid "Add one URL per line. URL should not contain domain name." msgstr "" -#: admin/partials/nginx-helper-general-options.php:511 +#: admin/partials/nginx-helper-general-options.php:563 msgid "Eg: To purge http://example.com/sample-page/ add /sample-page/ in above textarea." msgstr "" -#: admin/partials/nginx-helper-general-options.php:515 +#: admin/partials/nginx-helper-general-options.php:567 msgid "'*' will only work with redis cache server." msgstr "" -#: admin/partials/nginx-helper-general-options.php:525 +#: admin/partials/nginx-helper-general-options.php:577 msgid "Debug Options" msgstr "" -#: admin/partials/nginx-helper-general-options.php:535 +#: admin/partials/nginx-helper-general-options.php:587 msgid "Enable Nginx Map." msgstr "" -#: admin/partials/nginx-helper-general-options.php:554 +#: admin/partials/nginx-helper-general-options.php:606 msgid "Enable Logging" msgstr "" -#: admin/partials/nginx-helper-general-options.php:559 +#: admin/partials/nginx-helper-general-options.php:611 msgid "disable" msgstr "" -#: admin/partials/nginx-helper-general-options.php:565 +#: admin/partials/nginx-helper-general-options.php:617 msgid "enable" msgstr "" -#: admin/partials/nginx-helper-general-options.php:572 +#: admin/partials/nginx-helper-general-options.php:624 msgid "NOTE" msgstr "" -#: admin/partials/nginx-helper-general-options.php:573 +#: admin/partials/nginx-helper-general-options.php:625 msgid "To" msgstr "" -#: admin/partials/nginx-helper-general-options.php:575 +#: admin/partials/nginx-helper-general-options.php:627 msgid "the logging feature, you must define" msgstr "" -#: admin/partials/nginx-helper-general-options.php:576 +#: admin/partials/nginx-helper-general-options.php:628 msgid "as" msgstr "" -#: admin/partials/nginx-helper-general-options.php:578 +#: admin/partials/nginx-helper-general-options.php:630 msgid "in your" msgstr "" -#: admin/partials/nginx-helper-general-options.php:589 +#: admin/partials/nginx-helper-general-options.php:641 msgid "Enable Nginx Timestamp in HTML" msgstr "" -#: admin/partials/nginx-helper-general-options.php:603 +#: admin/partials/nginx-helper-general-options.php:655 msgid "Nginx Map" msgstr "" -#: admin/partials/nginx-helper-general-options.php:612 +#: admin/partials/nginx-helper-general-options.php:664 msgid "Can't write on map file." msgstr "" #. translators: %s file url. -#: admin/partials/nginx-helper-general-options.php:617 -#: admin/partials/nginx-helper-general-options.php:689 +#: admin/partials/nginx-helper-general-options.php:669 +#: admin/partials/nginx-helper-general-options.php:741 msgid "Check you have write permission on %s" msgstr "" -#: admin/partials/nginx-helper-general-options.php:634 +#: admin/partials/nginx-helper-general-options.php:686 msgid "Nginx Map path to include in nginx settings" msgstr "" -#: admin/partials/nginx-helper-general-options.php:635 +#: admin/partials/nginx-helper-general-options.php:687 msgid "(recommended)" msgstr "" -#: admin/partials/nginx-helper-general-options.php:648 +#: admin/partials/nginx-helper-general-options.php:700 msgid "Or," msgstr "" -#: admin/partials/nginx-helper-general-options.php:649 +#: admin/partials/nginx-helper-general-options.php:701 msgid "Text to manually copy and paste in nginx settings" msgstr "" -#: admin/partials/nginx-helper-general-options.php:650 +#: admin/partials/nginx-helper-general-options.php:702 msgid "(if your network is small and new sites are not added frequently)" msgstr "" -#: admin/partials/nginx-helper-general-options.php:668 +#: admin/partials/nginx-helper-general-options.php:720 msgid "Logging Options" msgstr "" -#: admin/partials/nginx-helper-general-options.php:684 +#: admin/partials/nginx-helper-general-options.php:736 msgid "Can't write on log file." msgstr "" -#: admin/partials/nginx-helper-general-options.php:706 +#: admin/partials/nginx-helper-general-options.php:758 msgid "Logs path" msgstr "" -#: admin/partials/nginx-helper-general-options.php:718 +#: admin/partials/nginx-helper-general-options.php:770 msgid "View Log" msgstr "" -#: admin/partials/nginx-helper-general-options.php:723 +#: admin/partials/nginx-helper-general-options.php:775 msgid "Log" msgstr "" -#: admin/partials/nginx-helper-general-options.php:730 +#: admin/partials/nginx-helper-general-options.php:782 msgid "Log level" msgstr "" -#: admin/partials/nginx-helper-general-options.php:735 +#: admin/partials/nginx-helper-general-options.php:787 msgid "None" msgstr "" -#: admin/partials/nginx-helper-general-options.php:736 +#: admin/partials/nginx-helper-general-options.php:788 msgid "Info" msgstr "" -#: admin/partials/nginx-helper-general-options.php:737 +#: admin/partials/nginx-helper-general-options.php:789 msgid "Warning" msgstr "" -#: admin/partials/nginx-helper-general-options.php:738 +#: admin/partials/nginx-helper-general-options.php:790 msgid "Error" msgstr "" -#: admin/partials/nginx-helper-general-options.php:745 +#: admin/partials/nginx-helper-general-options.php:797 msgid "Max log file size" msgstr "" -#: admin/partials/nginx-helper-general-options.php:751 +#: admin/partials/nginx-helper-general-options.php:803 msgid "Mb" msgstr "" -#: admin/partials/nginx-helper-general-options.php:768 +#: admin/partials/nginx-helper-general-options.php:820 msgid "Save All Changes" msgstr "" diff --git a/nginx-helper.php b/nginx-helper.php index 915f9ab..b51e3c9 100644 --- a/nginx-helper.php +++ b/nginx-helper.php @@ -3,7 +3,7 @@ * 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.4 + * Version: 2.2.5 * Author: rtCamp * Author URI: https://rtcamp.com * Text Domain: nginx-helper diff --git a/readme.txt b/readme.txt index 4ac2451..6e4d290 100644 --- a/readme.txt +++ b/readme.txt @@ -1,12 +1,12 @@ === Nginx Helper === -Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase, sid177, souptik, arafatkn, subscriptiongroup +Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase, sid177, souptik, arafatkn, subscriptiongroup, akrocks Donate Link: http://rt.cx/eedonate/ Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks 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.3 +Stable tag: 2.2.5 Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things. @@ -127,6 +127,10 @@ Please post your problem in [our free support forum](https://github.com/rtCamp/n == Changelog == += 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) + = 2.2.4 = * Introduces the capability to specify the `NGINX_HELPER_LOG` constant, allowing users to activate the logging feature. [#318](https://github.com/rtCamp/nginx-helper/pull/318) - by [Vishal Kakadiya](https://github.com/vishalkakadiya) * Existing users employing the nginx-helper plugin with logging enabled will experience no disruptions. However, if logging is disabled, users must define the `NGINX_HELPER_LOG` constant to re-enable the logging feature. From 14636206a0a51310c02730dc88198638fda0a656 Mon Sep 17 00:00:00 2001 From: Pavan Patil <44057535+pavanpatil1@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:39:54 +0530 Subject: [PATCH 2/2] Fix selector for purge cache link --- tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js b/tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js index 18654c3..85e45b1 100644 --- a/tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js +++ b/tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js @@ -9,11 +9,11 @@ await page.waitForTimeout(1000); - await page.click('role=link[name="Purge Cache"i]'); + await page.click("a[title='Purge Cache']"); await page.waitForTimeout(2000); expect( page.locator( "div[class='updated'] p" )).toHaveText( 'Purge initiated' ); }); }); - \ No newline at end of file +