diff --git a/README.md b/README.md
index 9a9614f..3d9791c 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ Create and email invoices, track payments, expenses, and time tasks
[](https://invoiceninja.org)
[](https://react.invoicing.co/demo)
-[?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/invoiceninja5/)
+[?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/invoiceninja5/)

diff --git a/manifest.toml b/manifest.toml
index 07ea4f9..4710692 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -7,7 +7,7 @@ name = "InvoiceNinja 5"
description.en = "Create and email invoices, track payments, expenses, and time tasks"
description.fr = "Créer et envoyer des factures par e-mail, suivre les paiements, les dépenses et les tâches horaires"
-version = "5.12.70~ynh1"
+version = "5.13.21~ynh1"
maintainers = ["Sebastian Gumprich"]
@@ -58,8 +58,8 @@ ram.runtime = "50M"
[resources.sources]
[resources.sources.main]
- url = "https://github.com/invoiceninja/invoiceninja/releases/download/v5.12.70/invoiceninja.tar"
- sha256 = "b631ba3651873f0635131e4c518eff5f0cc803ecfd28bcf3ab012db5be3181fc"
+ url = "https://github.com/invoiceninja/invoiceninja/releases/download/v5.13.21/invoiceninja.tar"
+ sha256 = "7112908810127485dcc0fa2ab80877e7a058dc12b38a82a089686c8028f9fabc"
format = "tar.gz"
in_subdir = false
autoupdate.strategy = "latest_github_release"
diff --git a/scripts/upgrade b/scripts/upgrade
index de2e82e..369c4cc 100755
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -74,6 +74,8 @@ pushd "$install_dir"
#mkdir -p $install_dir/bootstrap/cache/ $install_dir/storage/framework/cache/ $install_dir/storage/framework/sessions/
# clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377)
+ mkdir -p $install_dir/storage/framework/cache/data/
+ chown -R $app:www-data $install_dir/storage/framework/cache/data/
php$php_version artisan view:clear
php$php_version artisan cache:clear
@@ -82,10 +84,6 @@ pushd "$install_dir"
# Optimize the framework for better performance
php$php_version artisan optimize --no-interaction --verbose
-
- # clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377)
- #php$php_version artisan view:clear
- #php$php_version artisan cache:clear
popd
#=================================================