From ff0b49a0463029933512ae39623970bc8da8b5ea Mon Sep 17 00:00:00 2001 From: Rachit Bhargava Date: Tue, 9 Jan 2024 14:46:09 -0500 Subject: [PATCH] new set of no cache pages --- build/dev/web-default-conf-cm.yaml | 5 ++--- build/prod/web-default-conf-cm.yaml | 6 ++---- build/qa/web-default-conf-cm.yaml | 6 ++---- build/stage/web-default-conf-cm.yaml | 6 ++---- 4 files changed, 8 insertions(+), 15 deletions(-) diff --git a/build/dev/web-default-conf-cm.yaml b/build/dev/web-default-conf-cm.yaml index 6af99ae1..4bae4098 100644 --- a/build/dev/web-default-conf-cm.yaml +++ b/build/dev/web-default-conf-cm.yaml @@ -103,7 +103,7 @@ data: } #Don't cache the following URLs - if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml") { + if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml|wp-login.php|/medical-shipping.*|/medical-order.*|/medical-profile.*|/medical-thank.*") { set $no_cache 1; } @@ -233,8 +233,7 @@ data: } #Don't cache the following URLs - if ($request_uri ~* "/(administrator/|wp-login.php)") - { + if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml|wp-login.php|/medical-shipping.*|/medical-order.*|/medical-profile.*|/medical-thank.*") { set $no_cache 1; } diff --git a/build/prod/web-default-conf-cm.yaml b/build/prod/web-default-conf-cm.yaml index c6bf5378..6f3a0dbe 100644 --- a/build/prod/web-default-conf-cm.yaml +++ b/build/prod/web-default-conf-cm.yaml @@ -100,8 +100,7 @@ data: } #Don't cache the following URLs - if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml") { - + if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml|wp-login.php|/medical-shipping.*|/medical-order.*|/medical-profile.*|/medical-thank.*") { set $no_cache 1; } @@ -230,8 +229,7 @@ data: } #Don't cache the following URLs - if ($request_uri ~* "/(administrator/|wp-login.php)") - { + if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml|wp-login.php|/medical-shipping.*|/medical-order.*|/medical-profile.*|/medical-thank.*") { set $no_cache 1; } diff --git a/build/qa/web-default-conf-cm.yaml b/build/qa/web-default-conf-cm.yaml index 9167d9a7..b155f005 100644 --- a/build/qa/web-default-conf-cm.yaml +++ b/build/qa/web-default-conf-cm.yaml @@ -100,8 +100,7 @@ data: } #Don't cache the following URLs - if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml") { - + if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml|wp-login.php|/medical-shipping.*|/medical-order.*|/medical-profile.*|/medical-thank.*") { set $no_cache 1; } @@ -230,8 +229,7 @@ data: } #Don't cache the following URLs - if ($request_uri ~* "/(administrator/|wp-login.php)") - { + if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml|wp-login.php|/medical-shipping.*|/medical-order.*|/medical-profile.*|/medical-thank.*") { set $no_cache 1; } diff --git a/build/stage/web-default-conf-cm.yaml b/build/stage/web-default-conf-cm.yaml index 1412406c..25568f79 100644 --- a/build/stage/web-default-conf-cm.yaml +++ b/build/stage/web-default-conf-cm.yaml @@ -100,8 +100,7 @@ data: } #Don't cache the following URLs - if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml") { - + if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml|wp-login.php|/medical-shipping.*|/medical-order.*|/medical-profile.*|/medical-thank.*") { set $no_cache 1; } @@ -230,8 +229,7 @@ data: } #Don't cache the following URLs - if ($request_uri ~* "/(administrator/|wp-login.php)") - { + if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|sitemap(_index)?.xml|wp-login.php|/medical-shipping.*|/medical-order.*|/medical-profile.*|/medical-thank.*") { set $no_cache 1; }