README.md in macaw_framework-1.2.4 vs README.md in macaw_framework-1.2.5
- old
+ new
@@ -102,11 +102,11 @@
```
### Caching: Improve performance by caching responses and configuring cache invalidation
```ruby
-m.get('/cached_data', cache: true) do |context|
+m.get('/cached_data', cache: ["header_to_cache", "query_param_to_cache"]) do |context|
# Retrieve data
end
```
*Observation: To activate caching, you also have to set its properties in the `application.json` file. If you don't, the caching strategy will not work. See the Configuration section below for more details.*
@@ -138,14 +138,10 @@
"macaw": {
"port": 8080,
"bind": "localhost",
"threads": 200,
"cache": {
- "cache_invalidation": 3600,
- "ignore_headers": [
- "header-to-be-ignored-from-caching-strategy",
- "another-header-to-be-ignored-from-caching-strategy"
- ]
+ "cache_invalidation": 3600
},
"prometheus": {
"endpoint": "/metrics"
},
"rate_limiting": {