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 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 588
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.