function drupal_clear_path_cache

drupal_clear_path_cache($source = NULL)

Clear the path cache.

Parameters

$source: An optional system path for which an alias is being changed.

File

includes/path.inc, line 584
Functions to handle paths in Drupal, including path aliasing.

Code

function drupal_clear_path_cache($source = NULL) {
  // Clear the drupal_lookup_path() static cache.
  drupal_static_reset('drupal_lookup_path');
  drupal_path_alias_whitelist_rebuild($source);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!path.inc/function/drupal_clear_path_cache/7.x