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.
2 parents e1f91b4 + 1557ff6 commit 25206adCopy full SHA for 25206ad
src/Caching/Storages/SQLiteJournal.php
@@ -117,14 +117,18 @@ public function clean(array $conditions)
117
}
118
119
$unionSql = implode(' UNION ', $unions);
120
+
121
+ $this->pdo->exec('BEGIN IMMEDIATE');
122
123
$stmt = $this->pdo->prepare($unionSql);
124
$stmt->execute($args);
125
$keys = $stmt->fetchAll(\PDO::FETCH_COLUMN, 0);
126
127
if (empty($keys)) {
128
+ $this->pdo->exec('COMMIT');
129
return [];
130
131
- $this->pdo->exec('BEGIN');
132
$this->pdo->prepare("DELETE FROM tags WHERE key IN ($unionSql)")->execute($args);
133
$this->pdo->prepare("DELETE FROM priorities WHERE key IN ($unionSql)")->execute($args);
134
$this->pdo->exec('COMMIT');
0 commit comments