mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 12:37:00 +03:00
Now sets the journal mode to wal
This commit is contained in:
5
index.js
5
index.js
@@ -40,8 +40,9 @@ var adminUserID = config.adminUserID;
|
|||||||
var behindProxy = config.behindProxy;
|
var behindProxy = config.behindProxy;
|
||||||
|
|
||||||
// Enable WAL mode checkpoint number
|
// Enable WAL mode checkpoint number
|
||||||
if (!config.readOnly) {
|
if (!config.readOnly && config.mode === "production") {
|
||||||
db.get("PRAGMA wal_autocheckpoint=1");
|
db.get("PRAGMA journal_mode=WAL;");
|
||||||
|
db.get("PRAGMA wal_autocheckpoint=1;");
|
||||||
}
|
}
|
||||||
|
|
||||||
//setup CORS correctly
|
//setup CORS correctly
|
||||||
|
|||||||
Reference in New Issue
Block a user