Invalidate the views cache, forcing a rebuild on the next grab of table data.
function views_invalidate_cache() {
// Clear the views cache.
cache('views_info')
->deleteAll();
// Clear the page and block cache.
cache_delete_tags(array(
'content' => TRUE,
));
// Set the menu as needed to be rebuilt.
state()
->set('menu_rebuild_needed', TRUE);
// Allow modules to respond to the Views cache being cleared.
module_invoke_all('views_invalidate_cache');
}