At some point, the entitycache module added support for entity languages. Based on the patch committed in #1073270: Webform needs to flush Entity Cache after updating components (and e-mail configurations), webform will clear the entity cache when emails are added/edited/deleted, but is calling cache_clear_all()
directly instead of using the entity controller, which means that it will not clear the language-specific caches for the entity.
Instead, webform should call entity_get_controller('node')->resetCache(array($nid))
and let entitycache handle the actual clearing logic.
Patch applied against the 7.x.3.x branch. Thanks!
Comment | File | Size | Author |
---|---|---|---|
#5 | webform_email_entitycache_langcode-2303607-5.patch | 1.96 KB | theunraveler |
webform_email_entitycache_langcode.patch | 958 bytes | theunraveler | |
Comments
Comment #1
theunraveler CreditAttribution: theunraveler commentedComment #2
DanChadwick CreditAttribution: DanChadwick commentedI believe this patch should be applied against the currently-active branches, 7.x-4.x and 8.x. I don't use this module, so I have to take it on face value that the patch is correct.
Comment #3
DanChadwick CreditAttribution: DanChadwick commented@theunraveler -- Looking at 7.x-4.x, I see additional places where perhaps this change needs to be made. Can you supply a patch against the current dev?
Comment #4
theunraveler CreditAttribution: theunraveler commentedComment #5
theunraveler CreditAttribution: theunraveler commentedOK, here's a new patch against the 7.x-4.x branch that address all places in the codebase where
cache_clear_all()
is used to clear node entity caches.Comment #6
DanChadwick CreditAttribution: DanChadwick commentedThank you very much. #5 committed to 7.x-4.x and 8.x
Comment #9
torotil CreditAttribution: torotil commentedI've cherry-picked this into 7.x-3.x and it will be part of the 7.x-3.23 release.