Commit 6b8c2b38 authored by Paul's avatar Paul

Issue #1299692: Null path retrieved from path redirect, leading to global flush

parent 589af4fa
......@@ -432,7 +432,9 @@ function expire_cache_derivative($paths, &$node = NULL) {
$path_redirects = expire_path_redirect_load(array('redirect' => $path));
if (isset($path_redirects)) {
foreach ($path_redirects as $path_redirect) {
$expire[] = $path_redirect['path'];
if (!empty($path_redirect['redirect'])) {
$expire[] = $path_redirect['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