Skip to content

Document metadata cache parameter #733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions core/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -259,7 +269,7 @@ class User
* @ORM\JoinTable(name="users_groups")
*/
public $groups;

// ...
}
```
Expand Down Expand Up @@ -295,7 +305,7 @@ class Group
* @ManyToMany(targetEntity="User", mappedBy="groups")
*/
public $users;

// ...
}
```
Expand Down