Skip to content

Commit

Permalink
Clear the cache when running the upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
kkthxbye committed Apr 29, 2022
1 parent 7b5625a commit 9f3846e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9f3846e

Please sign in to comment.