function drupal_clear_path_cache

Same name and namespace in other branches
  1. 6.x drupal-6.x/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 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.

Archivo

drupal-7.x/includes/path.inc, line 583
Functions to handle paths in Drupal, including path aliasing.

Código

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