122
122
// Check if the system paths for this page were loaded from cache in this
123
123
// request to avoid writing to cache on every request.
124
124
$cache = &path_alias_cache_static('path_alias_cache_lookup_path', array());
126
126
// Generate a cache ID (cid) specifically for this page.
128
128
// The static $map array used by drupal_lookup_path() includes all
129
129
// system paths for the page request.
131
131
$data = array_keys($paths);
132
132
$expire = $_SERVER['REQUEST_TIME'] + variable_get('cache_lifetime', 0);
133
133
cache_set($cid, $data, 'cache_path', $expire);