diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf index 41bfc20..9e0607d 100644 --- a/conf/extra_php-fpm.conf +++ b/conf/extra_php-fpm.conf @@ -14,4 +14,10 @@ ; Session lifetime to avoid disconnections on PWA mode php_admin_value[session.gc_maxlifetime] = 2592000 php_admin_value[session.cookie_lifetime] = 2592000 -php_value[session.save_path] = /var/www/__APP__/sessions \ No newline at end of file +php_value[session.save_path] = /var/www/__APP__/sessions + +; caching php files +php_value[opcache.enable_cli]=1 +php_value[opcache.max_accelerated_files]=100 +php_value[opcache.memory_consumption]=32M +php_value[opcache.revalidate_freq]=300 diff --git a/manifest.toml b/manifest.toml index 031ab27..6e6b449 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Moncycle" description.en = "Menstrual cycle follow-up for natural family planning" description.fr = "Suivi de cycle pour les méthodes naturelles de régulation de naissance" -version = "9.0~ynh5" +version = "9.0~ynh6" maintainers = ["Raoul de Limezy"] @@ -34,8 +34,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/jean-io/moncycle.app/archive/ee19dce2c74ff6e948fae98319cd00eda6ce4117.zip" - sha256 = "ef9a61dbbefa1b5c6454d893ac20b2beba773d7298d40ed47ba9c95636c35b3a" + url = "https://github.com/jean-io/moncycle.app/archive/2eaf8d5765423276f2f16816fb62218f6b311555.zip" + sha256 = "a193698c38d3d22eacbd41f9c8a1c9253748469571711c7781868521bf678da7" [resources.system_user] @@ -45,7 +45,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "mariadb-server, php8.2-gd, php8.2-mysql, php8.2-xml, php8.2-mbstring" + packages = "mariadb-server, php8.2-gd, php8.2-mysql, php8.2-xml, php8.2-mbstring, php8.2-opcache" [resources.database] type = "mysql" diff --git a/scripts/upgrade b/scripts/upgrade index 335f38a..302885e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -40,6 +40,8 @@ pushd "$install_dir" ynh_exec_warn_less mv ./www_data/* . ynh_exec_warn_less mv /tmp/config.php . + ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < db/demo.sql + ynh_script_progression --message="Checking if a database migration is needed" if ynh_compare_current_package_version --comparison le --version 7.0~ynh5 then diff --git a/sources/patches/main-02-static.patch b/sources/patches/main-01.static.patch similarity index 99% rename from sources/patches/main-02-static.patch rename to sources/patches/main-01.static.patch index 715ef42..c3c8904 100644 --- a/sources/patches/main-02-static.patch +++ b/sources/patches/main-01.static.patch @@ -457,4 +457,4 @@ index 73b2d83..61d675d 100644 + $statement = $db->prepare($sql); $statement->execute(); - return $statement->fetchAll(PDO::FETCH_NUM); + return $statement->fetchAll(PDO::FETCH_NUM); \ No newline at end of file diff --git a/sources/patches/main-01-mail.patch b/sources/patches/main-02-mail.patch similarity index 99% rename from sources/patches/main-01-mail.patch rename to sources/patches/main-02-mail.patch index 5c0b711..7b729a3 100644 --- a/sources/patches/main-01-mail.patch +++ b/sources/patches/main-02-mail.patch @@ -14,4 +14,4 @@ index 9b58b50..54553cf 100644 + $mail->SMTPSecure = false; $mail->Port = SMTP_PORT; $mail->CharSet = 'UTF-8'; - \ No newline at end of file +