From 3fad1a3629c49b6e904651264501fe273837ab8f Mon Sep 17 00:00:00 2001 From: soyuka Date: Tue, 19 Feb 2019 09:58:48 +0100 Subject: [PATCH] Document metadata cache parameter --- core/performance.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/performance.md b/core/performance.md index ad772e7ea15..ca5156a9d93 100644 --- a/core/performance.md +++ b/core/performance.md @@ -140,6 +140,16 @@ API Platform internally uses a [PSR-6](http://www.php-fig.org/psr/psr-6/) cache. Best performance is achieved using [APCu](https://github.com/krakjoe/apcu). Be sure to have the APCu extension installed on your production server, API Platform will automatically use it. +This parameter can be changed by changing the value of `api_platform.metadata_cache`: + +```yaml +# api/config/config.yaml + +parameters: + # Enable the metadata cache to speedup the builds + api_platform.metadata_cache: true +``` + ## Using PPM (PHP-PM) Response time of the API can be improved up to 15x by using [PHP Process Manager](https://github.com/php-pm/php-pm). If @@ -259,7 +269,7 @@ class User * @ORM\JoinTable(name="users_groups") */ public $groups; - + // ... } ``` @@ -295,7 +305,7 @@ class Group * @ManyToMany(targetEntity="User", mappedBy="groups") */ public $users; - + // ... } ```