mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-18 11:22:25 -06:00
Closes #11787: Rebuild any missing search cache entires after upgrade
This commit is contained in:
@@ -103,6 +103,11 @@ COMMAND="python3 netbox/manage.py remove_stale_contenttypes --no-input"
|
||||
echo "Removing stale content types ($COMMAND)..."
|
||||
eval $COMMAND || exit 1
|
||||
|
||||
# Rebuild the search cache (lazily)
|
||||
COMMAND="python3 netbox/manage.py reindex --lazy"
|
||||
echo "Rebuilding search cache ($COMMAND)..."
|
||||
eval $COMMAND || exit 1
|
||||
|
||||
# Delete any expired user sessions
|
||||
COMMAND="python3 netbox/manage.py clearsessions"
|
||||
echo "Removing expired user sessions ($COMMAND)..."
|
||||
|
||||
Reference in New Issue
Block a user