Skip to content
Snippets Groups Projects

feat(ssr): manage cache for contributor page

Merged Florent Poittevin requested to merge fpo/manage-ssr-cache-for-contributor-page into master
@@ -29,7 +29,10 @@ import {ServerEnvironment} from "./server-environment.defaults.model";
export const serverEnvironmentProject: Partial<ServerEnvironment> = {
projectName: "aou-portal",
activeMQResourceCacheEvictMap: {publication: "publicationsIndexed"},
activeMQResourceCacheEvictMap: {
publication: "publicationsIndexed",
contributor: "contributorsUpdated",
},
activeMQEnv: "aou",
ssrRoutes: [
{
@@ -78,9 +81,10 @@ export const serverEnvironmentProject: Partial<ServerEnvironment> = {
name: "contributor",
path: `/${RoutesEnum.contributor}/${AppRoutesEnum.paramId}`,
pathIdKey: AppRoutesEnum.paramId,
urlMatcher: `^\/${RoutesEnum.contributor}\/[0-9]+$`,
resource: "contributor",
withId: true,
cacheForbidden: true,
cacheEvictionMessageIsDeletedAttributeKey: "deleted",
},
],
};
Loading