Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TECH] Suppression de la mise en cache sur certaines routes pour gérer le cache par Baleen #11189

Merged
merged 3 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions api/src/banner/application/banner-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const register = async function (server) {
options: {
auth: false,
handler: bannerController.getInformationBanner,
cache: {
expiresIn: 30 * 1000,
},
cache: false,
},
},
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ export const oidcProviderRoutes = [
{
method: 'GET',
path: '/api/oidc/identity-providers',
config: {
options: {
lego-technix marked this conversation as resolved.
Show resolved Hide resolved
validate: {
query: Joi.object({
target: Joi.string().optional().default('app'),
}),
},
auth: false,
cache: false,
handler: (request, h) => oidcProviderController.getIdentityProviders(request, h),
notes: [
'Cette route renvoie une liste contenant les informations requises par le front pour les partenaires OIDC',
Expand Down
2 changes: 1 addition & 1 deletion api/src/shared/application/feature-toggles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const register = async function (server) {
auth: false,
handler: featureToggleController.getActiveFeatures,
tags: ['api'],
cache: { expiresIn: 30 * 1000 },
cache: false,
},
},
// TODO: Test route to be removed soon
Expand Down
Loading