Store sub-path aliases into the drupal_lookup_path() static cache.

File

./subpathauto.module, line 147

Code

function subpathauto_cache_subpath_alias($source, $alias, $langcode) {
    $cache =& drupal_static('drupal_lookup_path');
    $cache['map'][$langcode][$source] = $alias;
    unset($cache['no_source'][$langcode][$alias]);
}