From 762f6091d4aadf354eda77dc3ef375e9d2dd2862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Mon, 23 Oct 2023 16:40:44 +0200 Subject: [PATCH] reduce cacheTtl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .../apis/EntityPresentationApi/DefaultEntityPresentationApi.ts | 2 +- plugins/catalog/src/apis/EntityPresentationApi/defaults.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/catalog/src/apis/EntityPresentationApi/DefaultEntityPresentationApi.ts b/plugins/catalog/src/apis/EntityPresentationApi/DefaultEntityPresentationApi.ts index 9ec8af7760..e4ee60f2b4 100644 --- a/plugins/catalog/src/apis/EntityPresentationApi/DefaultEntityPresentationApi.ts +++ b/plugins/catalog/src/apis/EntityPresentationApi/DefaultEntityPresentationApi.ts @@ -121,7 +121,7 @@ export interface DefaultEntityPresentationApiOptions { * When to expire entities that have been loaded from the catalog API and * cached for a while. * - * @defaultValue 30 seconds + * @defaultValue 10 seconds * @remarks * * The higher this value, the lower the load on the catalog API, but also the diff --git a/plugins/catalog/src/apis/EntityPresentationApi/defaults.tsx b/plugins/catalog/src/apis/EntityPresentationApi/defaults.tsx index b3f4c5ec3c..237c57db0f 100644 --- a/plugins/catalog/src/apis/EntityPresentationApi/defaults.tsx +++ b/plugins/catalog/src/apis/EntityPresentationApi/defaults.tsx @@ -28,7 +28,7 @@ import PeopleIcon from '@material-ui/icons/People'; import PersonIcon from '@material-ui/icons/Person'; import { DefaultEntityPresentationApiRenderer } from './DefaultEntityPresentationApi'; -export const DEFAULT_CACHE_TTL: HumanDuration = { seconds: 30 }; +export const DEFAULT_CACHE_TTL: HumanDuration = { seconds: 10 }; export const DEFAULT_BATCH_DELAY: HumanDuration = { milliseconds: 50 };