Skip to content

v1.2.0

Compare
Choose a tag to compare
@jasonbahl jasonbahl released this 31 Aug 21:46
· 56 commits to main since this release

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)

Chores / Bugfixes

  • #244: fix: handle errors when editing graphql documents in the admin
  • #253: ci: add varnish docker image. Update docs.
  • #247: fix: remove wpengine specific code (see upgrade notice).
  • #257: ci: use .distignore when building plugin for github release