You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/guides/v2.4/graphql/caching.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ title: GraphQL caching
5
5
6
6
Magento can cache pages rendered from the results of certain GraphQL queries with [full-page caching]({{page.baseurl}}/extension-dev-guide/cache/page-caching.html). Full-page caching improves response time and reduces the load on the server. Without caching, each page might need to run blocks of code and retrieve large amounts of information from the database. Only queries submitted with an HTTP GET operation can be cached. POST queries cannot be cached.
7
7
8
+
The GraphQL schema is cached in the Configuration cache, which can be refreshed from the Cache Management page (**System** > **Tools** > **Cache Management**).
9
+
8
10
## Cached and uncached queries
9
11
10
12
The definitions for some queries include cache tags. Full page caching uses these tags to keep track of cached content. They also allow public content to be invalidated. Private content invalidation is handled on the client side.
@@ -151,7 +153,3 @@ Magento invalidates the cache when any of the following events occur:
151
153
* The `Preview-Version` header is specified in a query that supports caching.
152
154
* The system configuration changes.
153
155
* An administrator flushes or disables the cache from the Admin or with the `bin/magento cache` command.
154
-
155
-
### GraphQL Schema
156
-
157
-
The GraphQL schema is cached in the Configuration cache, which can be refreshed from the Cache Management page (System > Tools > Cache Management).
0 commit comments