aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/fpm-pool.conf
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-24 16:01:56 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-24 16:02:18 +0200
commit07e311959ba49888cff5ae13ebed7a07925f86e8 (patch)
treecf1fd8ac51a9c49553fbc1b6604bfbafb9253fa4 /community/nextcloud/fpm-pool.conf
parentf6519d53a6344b92f2fe4595ee70bd8492e06b65 (diff)
downloadaports-07e311959ba49888cff5ae13ebed7a07925f86e8.tar.gz
aports-07e311959ba49888cff5ae13ebed7a07925f86e8.tar.bz2
aports-07e311959ba49888cff5ae13ebed7a07925f86e8.tar.xz
community/nextcloud: use recommended settings for OpCache
Diffstat (limited to 'community/nextcloud/fpm-pool.conf')
-rw-r--r--community/nextcloud/fpm-pool.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/community/nextcloud/fpm-pool.conf b/community/nextcloud/fpm-pool.conf
index 4e09b57028..69fef6e37a 100644
--- a/community/nextcloud/fpm-pool.conf
+++ b/community/nextcloud/fpm-pool.conf
@@ -185,3 +185,13 @@ php_admin_value[always_populate_raw_post_data] = -1
; Disable certain functions for security reasons.
; http://php.net/disable-functions
php_admin_value[disable_functions] = exec,passthru,shell_exec,system,proc_open,curl_multi_exec,show_source
+
+; Set recommended settings for OpCache.
+; https://docs.nextcloud.com/server/13/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
+php_admin_flag[opcache.enable] = true
+php_admin_flag[opcache.enable_cli] = true
+php_admin_flag[opcache.save_comments] = true
+php_admin_value[opcache.interned_strings_buffer] = 8
+php_admin_value[opcache.max_accelerated_files] = 10000
+php_admin_value[opcache.memory_consumption] = 128
+php_admin_value[opcache.revalidate_freq] = 1