diff --git a/includes/simplenews.admin.inc b/includes/simplenews.admin.inc index 97b269b..d9cdd0b 100644 --- a/includes/simplenews.admin.inc +++ b/includes/simplenews.admin.inc @@ -2070,4 +2070,7 @@ function simplenews_node_tab_send_form_submit($form, &$form_state) { simplenews_newsletter_save($newsletter); backdrop_set_message(t('The newsletter will be sent when the content is published.')); } + // Clear the node cache for this node so that the status shows correctly when + // loaded. + cache_clear_all($node->nid, 'cache_entity_node'); } diff --git a/includes/simplenews.mail.inc b/includes/simplenews.mail.inc index 2c8d393..895915c 100644 --- a/includes/simplenews.mail.inc +++ b/includes/simplenews.mail.inc @@ -634,6 +634,9 @@ function simplenews_send_status_update() { ->condition('nid', $nid) ->fields(array('status' => SIMPLENEWS_STATUS_SEND_READY)) ->execute(); + // Clear the node cache for this node so that the status shows correctly + // when loaded. + cache_clear_all($nid, 'cache_entity_node'); } } }