From 2fa832f1f3a42d575ebfaf37e017e326a6134248 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 18 Nov 2024 13:37:32 +0000 Subject: [PATCH] No cache --- src/backend/InvenTree/plugin/installer.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/backend/InvenTree/plugin/installer.py b/src/backend/InvenTree/plugin/installer.py index e462665a4c..d889b7c699 100644 --- a/src/backend/InvenTree/plugin/installer.py +++ b/src/backend/InvenTree/plugin/installer.py @@ -126,7 +126,14 @@ def install_plugins_file(): logger.warning('Plugin file %s does not exist', str(pf)) return - cmd = ['install', '--disable-pip-version-check', '-U', '-r', str(pf)] + cmd = [ + 'install', + '--disable-pip-version-check', + '--no-cache-dir', + '-U', + '-r', + str(pf), + ] try: pip_command(*cmd) @@ -232,7 +239,7 @@ def install_plugin(url=None, packagename=None, user=None, version=None): logger.info('install_plugin: %s, %s', url, packagename) # build up the command - install_name = ['install', '-U'] + install_name = ['install', '-U', '--no-cache-dir', '--disable-pip-version-check'] full_pkg = ''