Commit f6babf40 authored by Mike Carper's avatar Mike Carper

#829010 by carlos8f: fix double paths in cache clearing logic.

parent 3e56351c
......@@ -333,10 +333,8 @@ function expire_cache_derivative(&$node, $paths, $both = FALSE, $force_flush = F
// Path alias
$path_alias = url($path, array('absolute' => FALSE));
if ($base_path != '/') {
$path_alias = implode('/', array_diff_assoc(array_filter(explode('/', $path_alias)), array_filter(explode('/', $base_path))));
}
$expire[] = $path_alias;
// Remove the base path
$expire[] = substr($path_alias, strlen($base_path));
// Path redirects
if (module_exists('path_redirect')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment