You are here

function drupal_clear_path_cache in Drupal 7

Same name and namespace in other branches
  1. 4 includes/common.inc \drupal_clear_path_cache()
  2. 5 includes/common.inc \drupal_clear_path_cache()
  3. 6 includes/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 modules/simpletest/tests/path.test
Test that drupal_lookup_path() returns the correct path.
path_delete in includes/path.inc
Delete a URL alias.
path_save in includes/path.inc
Save a path alias to the database.

File

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