Skip to content
Snippets Groups Projects
Commit ad77f77e authored by Taha Cherfia's avatar Taha Cherfia
Browse files

feat: cache translation for 7 days

parent 6628c47d
No related branches found
No related tags found
No related merge requests found
......@@ -143,12 +143,15 @@ cache:
plugins:
- responseCache:
cacheKey: '{operationName}-{documentString|hash}-{variableValues.offset}-{variableValues.limit}-{variableValues.geolocation.properties.place_id}-{variableValues.topicIds|hash}-{variableValues.skillIds|hash}'
cacheKey: '{operationName}-{documentString|hash}-{variableValues.offset}-{variableValues.limit}-{variableValues.geolocation.properties.place_id}-{variableValues.topicIds|hash}-{variableValues.skillIds|hash}-{variableValues.text|hash}-{variableValues.targetLanguage|hash}'
ttl: 0
ttlPerCoordinate:
# cache operation containing Query.discoverSpaces selection for 10 minutes
- coordinate: Query.discoverSpaces
ttl: 600000
# cache translation for 7 days
- coordinate: Query.translation_translate
ttl: 604800000
- maxDepth:
n: 15 # maximum nesting level an operation is allowed to have
serve:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment