From e0b9b06d0c8803808fc55d96cd7a1cc7d6c52d17 Mon Sep 17 00:00:00 2001 From: Morgan <10958823+morganhvidt@users.noreply.github.com> Date: Sun, 22 Mar 2020 19:28:56 +0800 Subject: [PATCH] Updated caching rules Removed `/edd_action` as it's actually `/?edd_action` a query string. They are removed by default. Removed `/checkout` as we already have /checkout/ (One of my plugins has the URL of /checkout-countdown../ and was never cached.) Added `/account/` as it's a common page that shouldn't be cached. --- wo/cli/templates/map-wp.mustache | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wo/cli/templates/map-wp.mustache b/wo/cli/templates/map-wp.mustache index 0133b75..c1af32c 100644 --- a/wo/cli/templates/map-wp.mustache +++ b/wo/cli/templates/map-wp.mustache @@ -36,11 +36,10 @@ map $request_uri $uri_no_cache { "~*/wp-comments-popup.php" 1; "~*/wp-links-opml.php" 1; "~*/xmlrpc.php" 1; - "~*/checkout" 1; - "~*/edd_action" 1; "~*/edd-sl/*" 1; "~*/add_to_cart/" 1; "~*/cart/" 1; + "~*/account/" 1; "~*/my-account/" 1; "~*/checkout/" 1; "~*/addons/" 1; @@ -88,4 +87,4 @@ map $https $https_prefix { map $http_upgrade $connection_upgrade { default upgrade; '' close; -} \ No newline at end of file +}