Configure rest cache
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user