Skip to content

Commit b00907d

Browse files
authored
Merge pull request #770 from api-platform/revert-766-remove/metadata-cache-parameter
Revert "Remove mention of deprecated "api_platform.metadata_cache" parameter"
2 parents 903eac7 + 82f935c commit b00907d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/performance.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ API Platform internally uses a [PSR-6](http://www.php-fig.org/psr/psr-6/) cache.
140140
Best performance is achieved using [APCu](https://github.com/krakjoe/apcu). Be sure to have the APCu extension installed
141141
on your production server. API Platform will automatically use it.
142142

143+
This parameter can be changed by changing the value of `api_platform.metadata_cache`:
144+
145+
```yaml
146+
# api/config/config.yaml
147+
148+
parameters:
149+
# Enable the metadata cache to speedup the builds
150+
api_platform.metadata_cache: true
151+
```
152+
143153
## Using PPM (PHP-PM)
144154

145155
Response time of the API can be improved up to 15x by using [PHP Process Manager](https://github.com/php-pm/php-pm). If

0 commit comments

Comments
 (0)