Skip to content

Commit

Permalink
Closes #3926: Extend upgrade script to invalidate cache data
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jan 15, 2020
1 parent e0ea5b0 commit 685cf50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions upgrade.sh
Expand Up @@ -45,3 +45,8 @@ eval $COMMAND
COMMAND="${PYTHON} netbox/manage.py collectstatic --no-input"
echo "Collecting static files ($COMMAND)..."
eval $COMMAND

# Clear all cached data
COMMAND="${PYTHON} netbox/manage.py invalidate all"
echo "Clearing cache data ($COMMAND)..."
eval $COMMAND

0 comments on commit 685cf50

Please sign in to comment.