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 May 17, 2022
1 parent 3bdd6cf commit 97084db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Caching/Storages/SQLiteJournal.php
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 97084db

Please sign in to comment.