From e0474136cc712f7467f23b6b6a4dc1994259daeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 20 May 2022 15:37:07 +0400 Subject: [PATCH] Configure rest cache --- config/plugins.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config/plugins.js b/config/plugins.js index 7588585..f8e3050 100644 --- a/config/plugins.js +++ b/config/plugins.js @@ -16,4 +16,23 @@ module.exports = ({env}) => ({ defaultReplyTo: env('SMTP_REPLY_TO'), }, }, + 'rest-cache': { + config: { + provider: { + name: 'memory', + options: { + max: 32767, + maxAge: 3600 + } + }, + strategy: { + contentTypes: [ + 'api::artiste.artiste', + 'api::parole.parole' + ], + debug: true, + hitpass: false + } + } + }, })