Commit 146beb51 authored by Dries's avatar Dries

- Fixed bug in cache_clear_all().  Patch by Marco.
parent 76b47f23
...@@ -477,7 +477,7 @@ function cache_set($cid, $data, $expire = 0) { ...@@ -477,7 +477,7 @@ function cache_set($cid, $data, $expire = 0) {
function cache_clear_all($cid = NULL) { function cache_clear_all($cid = NULL) {
if (empty($cid)) { if (empty($cid)) {
db_query("DELETE FROM cache"); db_query("DELETE FROM cache WHERE expire <> 0");
} }
else { else {
db_query("DELETE FROM cache WHERE cid = '%s'", $cid); db_query("DELETE FROM cache WHERE cid = '%s'", $cid);
......
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