Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
EntityTranslationDefaultHandler::removeTranslation()
doesn't invalidate the entity cache what leads to a misleading entity display.
The data in the database are removed, but the removed data are still visible in the frontend.
Maybe this is a side-effect when using Entity cache
Proposed resolution
Call entity_get_controller($this->entityType)->resetCache(array($this->getEntityId()));
in EntityTranslationDefaultHandler::removeTranslation()
.
Remaining tasks
reviews needed
User interface changes
none
API changes
none
Comment | File | Size | Author |
---|---|---|---|
entity_translation-clear-entity-cache-on-translation-delete.patch | 462 bytes | das-peter | |
Comments
Comment #2
plachentity_translation-clear-entity-cache-on-translation-delete.patch queued for re-testing.
Comment #3
plachCommitted and pushed, thanks!