v1.2.0
Release Notes
Upgrade Notice
Code Removal
This release removes some code specific to WP Engine that's been moved to WP Engine's MU Plugins.
Updating to WPGraphQL Smart Cache v1.2.0 or newer should be done at the same time as updating to WPGraphQL v1.16.0
otherwise some caches might not evict properly in response to data changes.
Garbage Collection of GraphQL Documents
When using "Automated Persisted Queries", documents are stored in the "GraphQL Document" post type and as client queries change over time an excess of persisted queries can be stored.
Garbage collection allows for documents to be purged after a certain amount of time.
You can enable "Garbage Collection" under "GraphQL > Settings > Saved Queries" and checking the option to "Delete Old Queries".
When enabling this feature, documents that are not associated with a "Group" will be purged after xx amount of days according to the settings.
Before enabling this setting, we recommend going through your saved GraphQL Documents and assigning a "group" to any that you want to skip garbage collection.
Groups are like bookmarks or collections for your GraphQL Documents. You can use them for whatever reason you like, but if a document is grouped, it will not be automatically garbage collected.
New Features
- #227: feat: add garbage collection for graphql_documents (see upgrade notice)