perf: cache getConfig ()

* cache `getConfig`

* critical fix

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>

---------

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
This commit is contained in:
Mert 2024-05-10 14:15:25 -04:00 committed by GitHub
parent 35ef82ab6b
commit f3fbb9b588
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 73 additions and 53 deletions
server/src/interfaces

View file

@ -20,6 +20,7 @@ export enum DatabaseLock {
StorageTemplateMigration = 420,
CLIPDimSize = 512,
LibraryWatch = 1337,
GetSystemConfig = 69,
}
export const extName: Record<DatabaseExtension, string> = {