add realpath_cache_ttl & opcache.preload with user

This commit is contained in:
Andreas Lehr 2024-04-26 18:02:29 +02:00
parent 51684c4c27
commit c2190251e5
4 changed files with 13 additions and 0 deletions

View File

@ -102,6 +102,7 @@ By default, all the extra defaults below are applied through the php.ini include
php_max_input_time: "60"
php_max_input_vars: "1000"
php_realpath_cache_size: "32K"
php_realpath_cache_ttl: "120"
php_file_uploads: "On"
php_upload_max_filesize: "64M"
php_max_file_uploads: "20"
@ -142,6 +143,8 @@ The OpCache is included in PHP starting in version 5.5, and the following variab
php_opcache_revalidate_path: "0"
php_opcache_revalidate_freq: "2"
php_opcache_max_file_size: "0"
php_opcache_preload: ""
php_opcache_preload_user: ""
OpCache ini directives that are often customized on a system. Make sure you have enough memory and file slots allocated in the OpCache (`php_opcache_memory_consumption`, in MB, and `php_opcache_max_accelerated_files`) to contain all the PHP code you are running. If not, you may get less-than-optimal performance!

View File

@ -63,6 +63,8 @@ php_opcache_revalidate_path: "0"
php_opcache_revalidate_freq: "2"
php_opcache_max_file_size: "0"
php_opcache_blacklist_filename: ""
php_opcache_preload: ""
php_opcache_preload_user: ""
# APCu settings.
php_enable_apc: true
@ -79,6 +81,7 @@ php_max_execution_time: "60"
php_max_input_time: "60"
php_max_input_vars: "1000"
php_realpath_cache_size: "32K"
php_realpath_cache_ttl: "120"
php_file_uploads: "On"
php_upload_max_filesize: "64M"

View File

@ -12,3 +12,9 @@ opcache.max_file_size={{ php_opcache_max_file_size }}
{% if php_opcache_blacklist_filename != '' %}
opcache.blacklist_filename={{ php_opcache_blacklist_filename }}
{% endif %}
{% if php_opcache_preload != '' %}
opcache.preload={{ php_opcache_preload }}
{% endif %}
{% if php_opcache_preload_user != '' %}
opcache.preload_user={{ php_opcache_preload_user }}
{% endif %}

View File

@ -74,6 +74,7 @@ user_dir =
enable_dl = Off
realpath_cache_size = {{ php_realpath_cache_size }}
realpath_cache_ttl = {{ php_realpath_cache_ttl }}
;;;;;;;;;;;;;;;;
; File Uploads ;