File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,16 @@ API Platform internally uses a [PSR-6](http://www.php-fig.org/psr/psr-6/) cache.
140
140
Best performance is achieved using [APCu](https://github.com/krakjoe/apcu). Be sure to have the APCu extension installed
141
141
on your production server, API Platform will automatically use it.
142
142
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
+
143
153
# # Using PPM (PHP-PM)
144
154
145
155
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
259
269
* @ORM\J oinTable(name="users_groups")
260
270
*/
261
271
public $groups;
262
-
272
+
263
273
// ...
264
274
}
265
275
` ` `
@@ -295,7 +305,7 @@ class Group
295
305
* @ManyToMany(targetEntity="User", mappedBy="groups")
296
306
*/
297
307
public $users;
298
-
308
+
299
309
// ...
300
310
}
301
311
` ` `
You can’t perform that action at this time.
0 commit comments