Commit d2e9421e authored by Josh Koenig's avatar Josh Koenig

removing attachment of $base_url; different caching mechanisms will want to...

removing attachment of $base_url; different caching mechanisms will want to handle this differently; let's keep things local here.
parent 82cadd0f
......@@ -333,23 +333,16 @@ function expire_cache_derivative($paths, $both = FALSE, $force_flush = FALSE) {
}
// Expire cached files
$counter = 0;
if (empty($expire)) {
return FALSE;
}
$expire = array_unique($expire);
// Add on the url to these paths
$urls = array();
global $base_url;
foreach ($expire as $path) {
$urls[] = $base_url . '/' . $path;
}
watchdog('expire','<pre><tt>' . print_r($urls, TRUE) . '</tt></pre>');
watchdog('expire','<pre><tt>' . print_r($expire, TRUE) . '</tt></pre>');
// hook_expire_cache
foreach (module_implements('expire_cache') as $module) {
module_invoke($module, 'expire_cache', $urls);
module_invoke($module, 'expire_cache', $expire);
}
return count($urls);
return count($expire);
}
/**
......
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