Skip to content

Configurable Knex session clear interval#7916

Open
dlakatos847 wants to merge 1 commit intorequarks:mainfrom
sysagnostic:main
Open

Configurable Knex session clear interval#7916
dlakatos847 wants to merge 1 commit intorequarks:mainfrom
sysagnostic:main

Conversation

@dlakatos847
Copy link

Running wiki.js on certain platforms requires the ability to fine-tune database interactions. E.g. DaaS like AWS RDS bills its customers based on consumed ACUs, which theoretically could be around zero running an unused wiki.js instance. Since Knex clears stale sessions periodically, which job opens database connections and performs database operations, achieving near-zero ACU consumtion is impossible.

Wiki.js currently uses Knex with its default settings which triggers the clear job every 60 000 ms. This contribution allows users to override this interval to anything they like but leaves the default value in place.

@auto-assign auto-assign bot requested a review from NGPixel February 3, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants