We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a6cbb commit 7cac14dCopy full SHA for 7cac14d
src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php
@@ -213,11 +213,7 @@ protected function doHave(string $id): bool
213
protected function doClear(string $namespace): bool
214
{
215
if ('' === $namespace) {
216
- if ('sqlite' === $this->getPlatformName()) {
217
- $sql = "DELETE FROM $this->table";
218
- } else {
219
- $sql = "TRUNCATE TABLE $this->table";
220
- }
+ $sql = $this->conn->getDatabasePlatform()->getTruncateTableSQL($this->table);
221
} else {
222
$sql = "DELETE FROM $this->table WHERE $this->idCol LIKE '$namespace%'";
223
}
0 commit comments