Explorar o código

Clear the cache when running the upgrade script

kkthxbye %!s(int64=4) %!d(string=hai) anos
pai
achega
9f3846ec5f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      upgrade.sh

+ 5 - 0
upgrade.sh

@@ -108,6 +108,11 @@ COMMAND="python3 netbox/manage.py clearsessions"
 echo "Removing expired user sessions ($COMMAND)..."
 eval $COMMAND || exit 1
 
+# Clear the cache
+COMMAND="python3 netbox/manage.py clearcache"
+echo "Clearing the cache ($COMMAND)..."
+eval $COMMAND || exit 1
+
 if [ -v WARN_MISSING_VENV ]; then
   echo "--------------------------------------------------------------------"
   echo "WARNING: No existing virtual environment was detected. A new one has"