Commit a58a11ac authored by bgm's avatar bgm

fix for mysql syntax

parent 2fd99918
......@@ -6260,10 +6260,10 @@ function boost_crawler_prune_table($expire) {
}
if ($expire && BOOST_LOOPBACK_BYPASS) {
db_query("DELETE FROM {boost_crawler} cr WHERE cr.hash IN (SELECT ca.hash_url FROM {boost_cache} ca WHERE ca.expire BETWEEN 1 AND 434966399 OR ca.expire > %d)", BOOST_TIME);
db_query("DELETE FROM {boost_crawler} WHERE hash IN (SELECT ca.hash_url FROM {boost_cache} ca WHERE ca.expire BETWEEN 1 AND 434966399 OR ca.expire > %d)", BOOST_TIME);
}
else {
db_query("DELETE FROM {boost_crawler} cr WHERE cr.hash IN (SELECT ca.hash_url FROM {boost_cache} ca WHERE ca.expire BETWEEN 1 AND 434966399 OR ca.expire > 434966400)");
db_query("DELETE FROM {boost_crawler} WHERE hash IN (SELECT ca.hash_url FROM {boost_cache} ca WHERE ca.expire BETWEEN 1 AND 434966399 OR ca.expire > 434966400)");
}
variable_set('boost_crawl_prune_table', TRUE);
......
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