Disable menu cache for hook_menu() implementation There is a way to disable the menu cache ? 

Context

Drupal 7

I have a custom module that implements hook_menu(). The link is showing up only if a view have results. It's working. 

The problem is that I have to clear the drupal cache each time the view changes the number of results because the condition is not triggered anymore. 

function gal_custom_menu() {

  $items['exhibitions'] = array(
    'title' =&gt; t('Current exhibition'),
    'page callback' =&gt; 'gal_exhibition_callback',
    'access arguments' =&gt; array('access content'),
  );  

  return $items;
}


function gal_exhibition_callback() {

  $x = views_get_view_result('exhibition', 'page');

  if(count($x)) {
  $path = drupal_get_path_alias('node/' . $x[0]-&gt;nid);
  drupal_goto($path);
  } else {
  return FALSE;
  }

}


Do you have any idea how can I disable the menu cache ? Or is it the Views cache ?

Thanks
Good conversation about other things in this code sample, but to make a page loaded through a menu callback skip cache, you can try drupal_page_is_cacheable(FALSE). See: https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_page_is_cacheable/7.x