Skip to content

Commit

Permalink
0.22.10
Browse files Browse the repository at this point in the history
- Enabled WAL in the SQLite instance used for session storage by default.
- Updated various dependencies.
  • Loading branch information
kethinov committed May 28, 2024
1 parent 209a9d2 commit c6b931d
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 45 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

- Put your changes here...

## 0.22.10

- Enabled WAL in the SQLite instance used for session storage by default.
- Updated various dependencies.

## 0.22.9

- Fixed an issue with cert generation from CLI scripts properly this time.
Expand Down
4 changes: 3 additions & 1 deletion lib/setExpressConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ module.exports = function (app) {
} else {
if (params.mode === 'production-proxy' || (params.localhostOnly && !params.hostPublic)) logger.warn('Session store as-configured will only scale to one process. Read more about scaling sessions here: https://github.com/rooseveltframework/roosevelt#use-a-caching-service-or-a-database-to-store-sessions')
if (params.expressSessionStore.preset === 'default') {
const db = new Sqlite(params.expressSessionStore.filename)
db.pragma('journal_mode = WAL') // it is generally important to set the WAL pragma for performance reasons https://github.com/WiseLibs/better-sqlite3/blob/master/docs/performance.md
store = new SqliteStore({
client: new Sqlite(params.expressSessionStore.filename),
client: db,
expired: {
clear: true,
intervalMs: params.expressSessionStore.presetOptions.checkPeriod
Expand Down
99 changes: 57 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/rooseveltframework/roosevelt/graphs/contributors"
}
],
"version": "0.22.9",
"version": "0.22.10",
"files": [
"defaultErrorPages",
"lib",
Expand Down Expand Up @@ -70,7 +70,7 @@
"standard": "17.1.0",
"stylus": "0.63.0",
"supertest": "7.0.0",
"teddy": "0.6.6",
"teddy": "0.6.7",
"watcher": "2.3.1"
},
"repository": {
Expand Down

0 comments on commit c6b931d

Please sign in to comment.