Configure rest cache

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-20 15:37:07 +04:00
parent ed4ddb1ee7
commit e0474136cc
+19
View File
@@ -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
}
}
},
})