Commit af2f57b2 authored by cammchugh's avatar cammchugh Committed by Spleshka

Issue #2390947 by cammchugh, Spleshka: hook_expire_cache invoked with empty list of urls

parent f724c073
......@@ -101,6 +101,12 @@ class ExpireAPI {
// Latest possibility to change urls that should be expired.
drupal_alter('expire_urls', $urls, $object_type, $object);
// Probably during alteration all urls were deleted. In this case
// we should stop any further expiration.
if (empty($urls)) {
return;
}
// Write some debug information.
self::debugLog($urls, $wildcards, $object_type);
......
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