Skip to content

Commit dccca8c

Browse files
ENGCOM-8329: Allow to cache search results #30340
2 parents c03bde6 + ac977b1 commit dccca8c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/code/Magento/PageCache/etc/varnish4.vcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ sub vcl_recv {
5757
return (pass);
5858
}
5959

60-
# Bypass shopping cart, checkout and search requests
61-
if (req.url ~ "/checkout" || req.url ~ "/catalogsearch") {
60+
# Bypass shopping cart and checkout
61+
if (req.url ~ "/checkout") {
6262
return (pass);
6363
}
6464

app/code/Magento/PageCache/etc/varnish5.vcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ sub vcl_recv {
5858
return (pass);
5959
}
6060

61-
# Bypass shopping cart, checkout and search requests
62-
if (req.url ~ "/checkout" || req.url ~ "/catalogsearch") {
61+
# Bypass shopping cart and checkout
62+
if (req.url ~ "/checkout") {
6363
return (pass);
6464
}
6565

app/code/Magento/PageCache/etc/varnish6.vcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ sub vcl_recv {
6262
return (pass);
6363
}
6464

65-
# Bypass shopping cart, checkout and search requests
66-
if (req.url ~ "/checkout" || req.url ~ "/catalogsearch") {
65+
# Bypass shopping cart and checkout
66+
if (req.url ~ "/checkout") {
6767
return (pass);
6868
}
6969

0 commit comments

Comments
 (0)