File tree 4 files changed +16
-1
lines changed
docs/02-admin/01-installation
4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 156
156
"ergebnis/composer-normalize" : true
157
157
},
158
158
"optimize-autoloader" : true ,
159
+ "classmap-authoritative" : true ,
159
160
"preferred-install" : {
160
161
"*" : " dist"
161
162
},
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ parameters:
114
114
mbin_downvotes_mode : ' %env(enum:\App\Utils\DownvotesMode:default:mbin_downvotes_mode_default:MBIN_DOWNVOTES_MODE)%'
115
115
116
116
mbin_new_users_need_approval : ' %env(bool:default::MBIN_NEW_USERS_NEED_APPROVAL)%'
117
+ .container.dumper.inline_factories : true
117
118
118
119
services :
119
120
# default configuration for services in *this* file
Original file line number Diff line number Diff line change @@ -8,4 +8,9 @@ opcache.enable_cli=1
8
8
opcache.memory_consumption =512
9
9
opcache.interned_strings_buffer =128
10
10
opcache.max_accelerated_files =100000
11
- opcache.jit_buffer_size =500M
11
+ opcache.validate_timestamps =0
12
+ opcache.preload =/var/www/mbin/config/preload.php
13
+ opcache.preload_user =www-data
14
+ ; Enable PHP JIT with all optimizations
15
+ opcache.jit = 1255
16
+ opcache.jit_buffer_size =500M
Original file line number Diff line number Diff line change @@ -270,16 +270,24 @@ Optionally also enable OPCache for improved performances with PHP (recommended f
270
270
``` ini
271
271
opcache.enable = 1
272
272
opcache.enable_cli = 1
273
+ ; replace `/var/www/mbin` with `/var/www/kbin` if needed
274
+ opcache.preload = /var/www/mbin/config/preload.php
275
+ opcache.preload_user = www-data
273
276
; Memory consumption (in MBs), personal preference
274
277
opcache.memory_consumption = 512
275
278
; Internal string buffer (in MBs), personal preference
276
279
opcache.interned_strings_buffer = 128
277
280
opcache.max_accelerated_files = 100000
281
+ opcache.validate_timestamps = 0
278
282
; Enable PHP JIT with all optimizations
279
283
opcache.jit = 1255
280
284
opcache.jit_buffer_size = 500M
281
285
```
282
286
287
+ > [ !CAUTION]
288
+ > Be aware that activating ` opcache.preload ` can lead to errors if you run multiple sites
289
+ > (because of re-declaring classes).
290
+
283
291
More info: [ Symfony Performance docs] ( https://symfony.com/doc/current/performance.html )
284
292
285
293
Edit your PHP ` www.conf ` file as well, to increase the amount of PHP child processes (optional):
You can’t perform that action at this time.
0 commit comments