Skip to content

Commit 059ac0d

Browse files
author
Prabhu Ram
committed
MC-15960: Separate Graphql cache handing in VCL for the /graphql area
- Modified vcls to separate graphql cache handling for queries starting with /graphql
1 parent 4c8e768 commit 059ac0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ sub vcl_hash {
123123
hash_data(server.ip);
124124
}
125125

126-
if (req.url ~ "graphql") {
126+
if (req.url ~ "/graphql") {
127127
call process_graphql_headers;
128128
}
129129

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ sub vcl_hash {
130130
}
131131
/* {{ design_exceptions_code }} */
132132

133-
if (req.url ~ "graphql") {
133+
if (req.url ~ "/graphql") {
134134
call process_graphql_headers;
135135
}
136136
}

0 commit comments

Comments
 (0)