function drupal_clear_path_cache

7.x path.inc drupal_clear_path_cache($source = NULL)
6.x common.inc 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-7.x/modules/simpletest/tests/path.test
Test that drupal_lookup_path() returns the correct path.
path_delete in drupal-7.x/includes/path.inc
Delete a URL alias.
path_save in drupal-7.x/includes/path.inc
Save a path alias to the database.

File

drupal-7.x/includes/path.inc, line 583
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);
}