wp-graphql / wp-graphql-smart-cache

Smart Caching & Cache Invalidation for WPGraphQL
60 stars 14 forks source link

Remove WP Engine specific code #246

Closed markkelnar closed 1 year ago

markkelnar commented 1 year ago

There still remains some WP Engine specific code related to early development to integration with network (Varnish) caching on the WP Engine platform. This exists as a hook that listens to the purge functionality and calls some WPE specific code that only runs on that platform in that WPE plugin.

Removing here and working to make sure it doesn't break behavior for WPE users. That code, or similar actions, should exist before this issue is closed.

markkelnar commented 1 year ago

With these two proposed changes and one to the wpengine plugin (it is private therefore not visible here). The following describes current behavior and what we want to get to.

Existing/deployed wpengine plugin:

Existing wp-graphql

Existing wp-graphql-smart-cache

Plugin changes:

wpengine plugin

wp-graphql

smart-cache

Conclusion

Can make wpengine plugin update even with old smart cache and graphql plugins. action with new arguments will be fine because is defined with default value of =''. Will fire but until new wp-graphql and smart-cache plugins, url hostname will not invalidate anything.

smart-cache and wp-graphql

If wp-graphql plugin is updated alone, the domain/url cache parameter will not match what is invalidated by an older version of smart-cache nor wpengine plugin.

jasonbahl commented 1 year ago

closed by: https://github.com/wp-graphql/wp-graphql-smart-cache/releases/tag/v1.2.0