Skip to content

Commit 200fb25

Browse files
forgie1dg
authored andcommitted
SQLiteJournal: speed up cache writing, prevent database locked error (#66)
1 parent 8bf4d2b commit 200fb25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Caching/Storages/SQLiteJournal.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ private function open(): void
6060
CREATE UNIQUE INDEX IF NOT EXISTS idx_tags_key_tag ON tags(key, tag);
6161
CREATE UNIQUE INDEX IF NOT EXISTS idx_priorities_key ON priorities(key);
6262
CREATE INDEX IF NOT EXISTS idx_priorities_priority ON priorities(priority);
63+
PRAGMA synchronous = NORMAL;
6364
');
6465
}
6566

0 commit comments

Comments
 (0)