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.
We have an external entity, which is invalidated using an API when there is a change in the external system. We use $entity->getCacheTagsToInvalidate() in order to invalidate the entities cache, when we get notified of a change.
Unfortunately the values from the API are not rebuild, when this is called.
Looking into the code, we see that those tags are not set, when the entity is set in cache in setPersistentCache.
Attached is a patch, to fix that.
Comment | File | Size | Author |
---|---|---|---|
#2 | external_entities_cache_tags_3176491_2.patch | 835 bytes | echo15 |
use_entity_cache_tags.patch | 836 bytes | eyilmaz | |
Comments
Comment #2
echo15 CreditAttribution: echo15 at FFW commentedThere is small typo in patch #1
Here is a fixed version.
Comment #3
echo15 CreditAttribution: echo15 at FFW commentedComment #4
attiks CreditAttribution: attiks at Attiks for United Nations commented