Skip to content

Commit

Permalink
- update versions, changelog for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Aug 31, 2023
1 parent 6bf0416 commit 45820d7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
36 changes: 35 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: WPGraphQL, Cache, API, Invalidation, Persisted Queries, GraphQL, Performan
Requires at least: 5.6
Tested up to: 6.1
Requires PHP: 7.4
Stable tag: 1.1.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -65,6 +65,27 @@ Learn more about how [Appsero collects and uses this data](https://appsero.com/p

== Upgrade Notice ==

= 1.2.0 =

**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](https://github.com/wp-graphql/wp-graphql/releases)
otherwise some caches might not evict properly in response to data changes.

**Garbage Collection of GraphQL Document**
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.

= 0.2.0 =

This release removes a lot of code that has since been released as part of WPGraphQL core.
Expand All @@ -73,6 +94,19 @@ In order to use v0.2.0+ of WPGraphQL Smart Cache, you will need WPGraphQL v1.12.

== Changelog ==

= 1.2.0 =

**New Features**

- [#227](https://github.com/wp-graphql/wp-graphql-smart-cache/pull/227): feat: add garbage collection for graphql_documents (see upgrade notice)

**Chores / Bugfixes**

- [#244](https://github.com/wp-graphql/wp-graphql-smart-cache/pull/244): fix: handle errors when editing graphql documents in the admin
- [#253](https://github.com/wp-graphql/wp-graphql-smart-cache/pull/244): ci: add varnish docker image. Update docs.
- [#247](https://github.com/wp-graphql/wp-graphql-smart-cache/pull/247): fix: remove wpengine specific code (see upgrade notice).
- [#257](https://github.com/wp-graphql/wp-graphql-smart-cache/pull/247):257: ci: use .distignore when building plugin for github release

= 1.1.4 =

**Chores / Bugfixes**
Expand Down
4 changes: 2 additions & 2 deletions wp-graphql-smart-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Requires PHP: 7.4
* Text Domain: wp-graphql-smart-cache
* Domain Path: /languages
* Version: 1.1.4
* Version: 1.2.0
* License: GPL-3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
Expand Down Expand Up @@ -46,7 +46,7 @@
}

if ( ! defined( 'WPGRAPHQL_SMART_CACHE_VERSION' ) ) {
define( 'WPGRAPHQL_SMART_CACHE_VERSION', '1.1.4' );
define( 'WPGRAPHQL_SMART_CACHE_VERSION', '1.2.0' );
}

if ( ! defined( 'WPGRAPHQL_SMART_CACHE_WPGRAPHQL_REQUIRED_MIN_VERSION' ) ) {
Expand Down

0 comments on commit 45820d7

Please sign in to comment.