Skip to content
Snippets Groups Projects
Commit 65e0a3f2 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 1883e93f
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -188,7 +188,7 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
else {
if ($wildcard) {
if ($cid == '*') {
db_delete($table)->execute();
db_truncate($table)->execute();
}
else {
db_delete($table)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment