Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

This plugin creates a dependency graph between collections and globals. The graph updates automatically, because the plugin observes the changes made on any collection or globals.

License

Notifications You must be signed in to change notification settings

GeorgeHulpoi/payload-dependency-graph

Repository files navigation

Payload Dependency Graph Plugin

npm version Test Downloads

This plugin creates a dependency graph between collections and globals. The graph updates automatically, because the plugin observes the changes made on any collection or globals.

This plugin is created and maintained by gvhdev.com.

Use Cases

The plugin is useful when it comes to cached content or relationship-based changes.

  • You're caching a static page that uses nested relationship fields. If the page has fields with blocks, and these blocks are recursive and have their own relationship fields, it can be difficult to know which cache needs to be purged. For this situation, the plugin is perfect for knowing which resource is dependent on whom.
  • You're caching the API responses that contain a depth greater than 0. You can purge that cache for that specific resource when its dependencies change.

About

This plugin creates a dependency graph between collections and globals. The graph updates automatically, because the plugin observes the changes made on any collection or globals.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published