fix(server): not caching serverInfo to redis (#4581)

This commit is contained in:
Kristaps Fabians Geikins
2025-04-23 17:16:11 +03:00
committed by GitHub
parent e5cad76eca
commit 4eaf5c2d36
2 changed files with 2 additions and 5 deletions
-3
View File
@@ -123,9 +123,6 @@ const coreModule: SpeckleModule<{
}
},
async finalize() {
// Reload serverInfo
await getCachedServerInfoFactory({ db }).clear()
// Update server profile in mp
await updateServerMixpanelProfileFactory({
getServerInfo: getCachedServerInfoFactory({ db }),
@@ -19,7 +19,7 @@ import {
isEmailEnabled
} from '@/modules/shared/helpers/envHelper'
import {
redisCacheProviderFactory,
inMemoryCacheProviderFactory,
wrapFactoryWithCache
} from '@/modules/shared/utils/caching'
import { TIME_MS } from '@speckle/shared'
@@ -77,7 +77,7 @@ export const getCachedServerInfoFactory = wrapFactoryWithCache({
factory: getServerInfoFactory,
name: 'modules/core/repositories/server::getServerInfo',
ttlMs: TIME_MS.hour,
cacheProvider: redisCacheProviderFactory()
cacheProvider: inMemoryCacheProviderFactory()
})
export const updateServerInfoFactory =