[Cache] PHP 8.0: JIT
페이지 정보
작성자 sbLAB 댓글 0건 조회 2,418회 작성일 23-06-04 09:11본문
Configuring JIT
In PHP 8.0, JIT is enabled by default, but turned off. Enabling JIT is easy, and only requires minimal INI configuration similar to this:
------php.ini----------
[php-fpm 경우 php.ini 경로] =>/etc/php/8.1/fpm/php.ini
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
zend_extension=opcache <-------- enable!!
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=256M
opcache.jit=tracing
opcache.validate_timestamps=1 ;(1=on) check for updated scripts every opcache.revalidate_freq seconds.
opcache.revalidate_freq=60 ; defalut value is 2, if developer mode --> opcache.revalidate_freq=0
--------------------------------
opcache.validate_timestamps
boolIf enabled, OPcache will check for updated scripts every opcache.revalidate_freq seconds.
When this directive is disabled, you must reset OPcache manually via opcache_reset(), opcache_invalidate() or by restarting the Web server for changes to the filesystem to take effect.
opcache.revalidate_freq
intHow often to check script timestamps for updates, in seconds. 0
will result in OPcache checking for updates on every request.
If opcache.validate_timestamps is disabled(0), This configuration directive is ignored.
-------- Restart Web Server.. ---------
http://localhost/dashboard/phpinfo.php
----- Simple OPcache Status Monitor -----------
https://github.com/rlerdorf/opcache-status
copy opcache.php to www(web public folder) in WebServer
http://localhost/dashboard/opcache.php
--- end -----
[Ubuntu Linux + xampp Dir Info]
WebRoot => /opt/lampp/htdocs
php.ini => /opt/lampp/etc/php.ini
------------------------------------
[opcache]
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=256M
opcache.jit=tracing
opcache.validate_timestamps=1
opcache.revalidate_freq=60
------------------------------------
systemctl restart xampp
첨부파일
- favicon.ico (1.1K) 3회 다운로드 | DATE : 2023-06-28 14:40:39
댓글목록
등록된 댓글이 없습니다.