Content Hub

Depcalc events



Content Hub 2.x will reach end-of-life on December 31, 2024. Acquia recommends that you update your Content Hub version to Content Hub 3.x by using the composer require instructions available on the acquia_contenthub project page.

The Depcalc events are present in the \Drupal\depcalc\DependencyCalculatorEvents class and are listed as follows:

Skipping cache invalidation

When an entity is saved, the system invalidates the Depcalc cache. Before invalidating the cache, the system fires an event to make the invalidation process more flexible. New event subscribers can be written by subscribing to this event with a logic to skip Depcalc cache invalidation for a particular entity.



To use this event, subscribe to


Dispatch event


Example implementation