Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Right now if you want to clear the cache on let's say hook_node_load(), you can't do this for cached nodes, because hooks aren't executed.
What I suggest is to have entitycache hooks, which get executed instead of all hook_node_load() or something similar, because in certain cases, you would want to clear the cache for certain nodes.
Thanks.
Comments
Comment #1
skwashd CreditAttribution: skwashd commentedCouldn't this be handled by the implementing existing core
hook_entity_load()
?Comment #2
amonteroPerhaps the Cache Object API module might be useful.
Also, I've linked to another similar issue.