wp-graphql / wp-graphql-smart-cache

Smart Caching & Cache Invalidation for WPGraphQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature request: logs for purge events

jasonbahl opened this issue · comments

As a developer, I would like to be able to enable logs for purge events.

When something is created or updated in WordPress, there can be a lot of side-effects and it can be tricky to identify what is causing a purge event to be called.

For example, publishing a post might purge terms it's connected. The user took the action to publish a post, but it's relations to other objects are also impacted and thus additional purge events are triggered.

In cases where there's over or under-purging, it can be helpful to enable logs, and monitor them to see if the purge events match the actions that were taken by the user.

These logs can help identify bugs or conflicts with plugins, etc.

closed by #215