You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed in a variety of contexts that it takes a long time for changes to register after adding or updating nodes, comments, etc. and I believe this is due to entity cache being added to core.
One example that was fixed in contrib was here, in webform civicrm:
I'm also working with a site that has reported that nobody's replies are showing up in a forum, which turned out to be a cache issue. I've added cache_clear_all($comment->cid, 'cache_entity_comment'); in a hook_comment_insert() and hook_comment_update() but I'm wondering if we should clear the targeted entity cache immediately in core after saving or updating.
The text was updated successfully, but these errors were encountered:
Cache invalidation can be tricky. Clearing the whole cache doesn't seem the right approach, though. We should rather clear the specific caches, that are affected by a comment addition (or edit). Which ones?
Adding a comment might also affect a specific node and page cache entry - is that correct?
Description of the bug
I've noticed in a variety of contexts that it takes a long time for changes to register after adding or updating nodes, comments, etc. and I believe this is due to entity cache being added to core.
One example that was fixed in contrib was here, in webform civicrm:
I'm also working with a site that has reported that nobody's replies are showing up in a forum, which turned out to be a cache issue. I've added
cache_clear_all($comment->cid, 'cache_entity_comment');
in ahook_comment_insert()
andhook_comment_update()
but I'm wondering if we should clear the targeted entity cache immediately in core after saving or updating.The text was updated successfully, but these errors were encountered: