Commit 65e0a3f2 authored by Dries's avatar Dries

- Patch #452936 by catch: use db_truncate() in cache_clear_all().

parent 1883e93f
...@@ -188,7 +188,7 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) { ...@@ -188,7 +188,7 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
else { else {
if ($wildcard) { if ($wildcard) {
if ($cid == '*') { if ($cid == '*') {
db_delete($table)->execute(); db_truncate($table)->execute();
} }
else { else {
db_delete($table) db_delete($table)
......
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