diff --git a/includes/cache.inc b/includes/cache.inc index c2945bca5abfd31321fc18525d49c24058b9ffa8..3d049826c39a72e00307f4358c76ce7b4166d202 100644 --- a/includes/cache.inc +++ b/includes/cache.inc @@ -169,7 +169,7 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) { else { if ($wildcard) { if ($cid == '*') { - db_query("DELETE FROM {". $table ."}"); + db_query("TRUNCATE TABLE {". $table ."}"); } else { db_query("DELETE FROM {". $table ."} WHERE cid LIKE '%s%%'", $cid); diff --git a/modules/update/update.module b/modules/update/update.module index 8e8f9c21a8e08d1b15a7bda4d0f863f1012a3e7c..b6b595a69d732d5ae59dace5d38722f770893819 100644 --- a/modules/update/update.module +++ b/modules/update/update.module @@ -557,7 +557,7 @@ function _update_cache_set($cid, $data, $expire) { } } -/** +/** * Retrieve data from the private update status cache table. * * @param $cid @@ -585,7 +585,7 @@ function _update_cache_get($cid) { */ function _update_cache_clear($cid = NULL) { if (empty($cid)) { - db_query("DELETE FROM {cache_update}"); + db_query("TRUNCATE TABLE {cache_update}"); } else { db_query("DELETE FROM {cache_update} WHERE cid = '%s'", $cid);