mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47: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;
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user