Skip to content

Commit

Permalink
SQLiteJournal: speed up cache writing, prevent database locked error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
forgie1 authored and dg committed Mar 28, 2022
1 parent 9127ca4 commit 929564d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Caching/Storages/SQLiteJournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
');
}

Expand Down

0 comments on commit 929564d

Please sign in to comment.