Commit c14c01ac authored by mikeytown2's avatar mikeytown2

Issue #1678694 by mikeytown2: remove expensive query from boost_exit code path.

parent 4da8bca6
......@@ -3524,13 +3524,6 @@ function boost_cache_kill_url($urls, $force_flush = TRUE) {
while ($row = db_fetch_array($result)) {
$files[] = array('filename' => $row['filename'], 'hash' => $row['hash']);
}
// Try again with a more expensive query
if (empty($files)) {
$result = boost_db_multi_select_in('boost_cache', 'url', "'%s'", $urls);
while ($row = db_fetch_array($result)) {
$files[] = array('filename' => $row['filename'], 'hash' => $row['hash']);
}
}
if (!empty($files)) {
boost_cache_kill($files, $force_flush);
boost_remove_db($files);
......
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