Commit 6f0ad4e3 authored by mikeytown2's avatar mikeytown2

#1055720: try a slower query for matching in boost_cache_kill_url.

parent a0f2d4e2
......@@ -667,7 +667,7 @@ function boost_exit($destination = NULL) {
global $_boost, $user;
// Check for redirects
if (!empty($destination) && $_SERVER['REQUEST_METHOD'] != 'POST') {
if (!empty($destination) && $_SERVER['REQUEST_METHOD'] != 'POST' && empty($_GET['destination'])) {
boost_redirect_handler($destination);
}
......@@ -3346,6 +3346,13 @@ 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