Index: modules/modr8/modr8_admin.inc =================================================================== --- modules/modr8/modr8_admin.inc (revision 1402) +++ modules/modr8/modr8_admin.inc (working copy) @@ -335,6 +335,7 @@ * Form submit handler, which approves or deletes the node. */ function modr8_form_submit($form, &$form_state) { + $clear_cache = FALSE; foreach ($form_state['values'] as $nid => $values) { $message = ''; switch ($values['ops']) { @@ -348,8 +349,8 @@ } db_query('UPDATE {node} SET moderate = 0 '. $publish .' WHERE nid = %d', $nid); drupal_set_message(t('The %type with title %title has been approved.', array('%title' => $values['title'], '%type' => $values['type']))); - cache_clear_all(); modr8_log_action('approve', $nid, $values, $message); + $clear_cache = TRUE; break; case 'delete': if (variable_get('modr8_send_deny', FALSE)) { @@ -367,6 +368,9 @@ break; } } + if($clear_cache) { + cache_clear_all(); + } } function modr8_log_action($op, $nid, $values, $message) {