function drupal_clear_path_cache

Clear the path cache.

Parameters

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

3 calls to drupal_clear_path_cache()
PathLookupTest::testDrupalLookupPath in drupal/modules/simpletest/tests/path.test
Test that drupal_lookup_path() returns the correct path.
path_delete in drupal/includes/path.inc
Delete a URL alias.
path_save in drupal/includes/path.inc
Save a path alias to the database.

File

drupal/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);
}