mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-09-20 04:54:00 +02:00
Now sets the journal mode to wal
This commit is contained in:
parent
ca5890e6e3
commit
938cff5381
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
@ -40,8 +40,9 @@ var adminUserID = config.adminUserID;
|
|||
var behindProxy = config.behindProxy;
|
||||
|
||||
// Enable WAL mode checkpoint number
|
||||
if (!config.readOnly) {
|
||||
db.get("PRAGMA wal_autocheckpoint=1");
|
||||
if (!config.readOnly && config.mode === "production") {
|
||||
db.get("PRAGMA journal_mode=WAL;");
|
||||
db.get("PRAGMA wal_autocheckpoint=1;");
|
||||
}
|
||||
|
||||
//setup CORS correctly
|
||||
|
|
Loading…
Reference in a new issue