From 5cd99a4e73f9eb66728a657b0665eac003da08eb Mon Sep 17 00:00:00 2001 From: forgie1 Date: Tue, 1 Mar 2022 14:55:42 +0100 Subject: [PATCH] SQLiteJournal: speed up cache writing, prevent database locked error (#66) --- src/Caching/Storages/SQLiteJournal.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Caching/Storages/SQLiteJournal.php b/src/Caching/Storages/SQLiteJournal.php index 02d4ba0e..bf1c9c9c 100644 --- a/src/Caching/Storages/SQLiteJournal.php +++ b/src/Caching/Storages/SQLiteJournal.php @@ -59,6 +59,7 @@ private function open(): void CREATE UNIQUE INDEX IF NOT EXISTS idx_tags_key_tag ON tags(key, tag); CREATE UNIQUE INDEX IF NOT EXISTS idx_priorities_key ON priorities(key); CREATE INDEX IF NOT EXISTS idx_priorities_priority ON priorities(priority); + PRAGMA synchronous = NORMAL; '); }