diff --git a/views_content_cache.module b/views_content_cache.module index ba726ff..256d097 100644 --- a/views_content_cache.module +++ b/views_content_cache.module @@ -96,6 +96,15 @@ function views_content_cache_votingapi_results($cached, $content_type, $content_ } /** + * Implements hook_workbench_moderation_transition(). + */ +function views_content_cache_workbench_moderation_transition($node, $previous_state, $new_state) { + if ($new_state == 'published' || ($previous_state == 'published' && empty($node->workbench_moderation['published']))) { + views_content_cache_update_set($node, 'node'); + } +} + +/** * Create one or more update records for the given object. * * @param object $object