Skip to content

Commit 5cd99a4

Browse files
forgie1dg
authored andcommitted
SQLiteJournal: speed up cache writing, prevent database locked error (#66)
1 parent c2dd4af commit 5cd99a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/Caching/Storages/SQLiteJournal.php

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ private function open(): void
5959
CREATE UNIQUE INDEX IF NOT EXISTS idx_tags_key_tag ON tags(key, tag);
6060
CREATE UNIQUE INDEX IF NOT EXISTS idx_priorities_key ON priorities(key);
6161
CREATE INDEX IF NOT EXISTS idx_priorities_priority ON priorities(priority);
62+
PRAGMA synchronous = NORMAL;
6263
');
6364
}
6465

0 commit comments

Comments
 (0)