You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,14 @@ Pre-requisites and initialization
24
24
--------------
25
25
26
26
As this library depends on `FFI`, it requires PHP>=7.4 and `FFI` extension to be enabled.
27
-
It should work in CLI mode without any troubles, whereas for web mode `preload` mode should be implemented (not done yet), so please configure `ffi.enable` to be `true`.
27
+
It should work in CLI mode without any troubles, whereas for web mode `preload` mode should be activated.
28
28
Also, current version is limited to x64 non-thread-safe versions of PHP.
29
29
30
30
To install this library, simply add it via `composer`:
31
31
```shell script
32
32
composer require lisachenko/z-engine
33
33
```
34
+
To activate a `preload` mode, please add `Core::preload()` call into your script, specified by `opcache.preload`. This call will be done during the server preload and will be used by library to bypass unnecessary C headers processing during each request.
34
35
35
36
Next step is to init library itself with short call to the `Core::init()`:
0 commit comments