From ec9ff2b8fdd8c4d21c904f86f14bfbe88a13a6ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 4 Jan 2019 18:10:20 +0100 Subject: Add opcache for nextcloud --- virtual/eldiron.nix | 2 ++ virtual/packages/nextcloud.nix | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'virtual') diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix index 280b69a..51e2bb9 100644 --- a/virtual/eldiron.nix +++ b/virtual/eldiron.nix @@ -155,6 +155,8 @@ extension=${pkgs.phpPackages.redis}/lib/php/extensions/redis.so ; For nextcloud extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so + ; For nextcloud + zend_extension=${pkgs.php}/lib/php/extensions/opcache.so ''; extraConfig = '' log_level = notice diff --git a/virtual/packages/nextcloud.nix b/virtual/packages/nextcloud.nix index d332a10..e39868a 100644 --- a/virtual/packages/nextcloud.nix +++ b/virtual/packages/nextcloud.nix @@ -243,7 +243,7 @@ let php_admin_value[output_buffering] = 0 php_admin_value[max_execution_time] = 1800 php_admin_value[zend_extension] = "opcache" - ;php_value[opcache.enable] = 1 + php_value[opcache.enable] = 1 php_value[opcache.enable_cli] = 1 php_value[opcache.interned_strings_buffer] = 8 php_value[opcache.max_accelerated_files] = 10000 -- cgit v1.2.3