From 1e26c911718110e18738045592ac48e094825a85 Mon Sep 17 00:00:00 2001 From: Kyle Fazzari Date: Mon, 4 Dec 2017 07:40:30 -0800 Subject: [PATCH] nextcloud: update to 12.0.4 All known blocking regressions have finally been fixed. Also enable opcache. Resolve #280 Signed-off-by: Kyle Fazzari --- snap/snapcraft.yaml | 4 ++-- src/php/config/php.ini | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 560c73179..351d9604d 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -138,8 +138,8 @@ parts: nextcloud: plugin: dump - source: https://download.nextcloud.com/server/releases/nextcloud-11.0.5.tar.bz2 - source-checksum: sha256/47261211384e63b1d4816be60817b0315029d018b5568ac3aeb3181be5fb98a4 + source: https://download.nextcloud.com/server/releases/nextcloud-12.0.4.tar.bz2 + source-checksum: sha256/654161a74ceaf9a60c7731d7d6702e6710a972633a97955d16f01abeb09d09b6 organize: '*': htdocs/ '.htaccess': htdocs/.htaccess diff --git a/src/php/config/php.ini b/src/php/config/php.ini index 85236ffb7..e97c3e221 100644 --- a/src/php/config/php.ini +++ b/src/php/config/php.ini @@ -1732,21 +1732,23 @@ ldap.max_links = -1 ;dba.default_handler= [opcache] +zend_extension=opcache.so + ; Determines if Zend OPCache is enabled -;opcache.enable=0 +opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP -;opcache.enable_cli=0 +opcache.enable_cli=1 ; The OPcache shared memory storage size. -;opcache.memory_consumption=64 +opcache.memory_consumption=128 ; The amount of memory for interned strings in Mbytes. -;opcache.interned_strings_buffer=4 +opcache.interned_strings_buffer=8 ; The maximum number of keys (scripts) in the OPcache hash table. ; Only numbers between 200 and 100000 are allowed. -;opcache.max_accelerated_files=2000 +opcache.max_accelerated_files=10000 ; The maximum percentage of "wasted" memory until a restart is scheduled. ;opcache.max_wasted_percentage=5 @@ -1759,19 +1761,19 @@ ldap.max_links = -1 ; When disabled, you must reset the OPcache manually or restart the ; webserver for changes to the filesystem to take effect. -;opcache.validate_timestamps=1 +opcache.validate_timestamps=0 ; How often (in seconds) to check file timestamps for changes to the shared ; memory storage allocation. ("1" means validate once per second, but only ; once per request. "0" means always validate) -;opcache.revalidate_freq=2 +opcache.revalidate_freq=1 ; Enables or disables file search in include_path optimization ;opcache.revalidate_path=0 ; If disabled, all PHPDoc comments are dropped from the code to reduce the ; size of the optimized code. -;opcache.save_comments=1 +opcache.save_comments=1 ; If enabled, a fast shutdown sequence is used for the accelerated code ;opcache.fast_shutdown=0