Extend upgrade script to invalidate cache #3160

Closed
opened 2025-12-29 18:26:13 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 15, 2020).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Extend the upgrade script (upgrade.sh) to automatically invalidate the cache by running manage.py invalidate for all apps.

Justification

After NetBox has been upgraded, cached data may conflict with the new code base and introduce errors until the cache expires. I believe #3909 is an example of this. Invalidating the cache automatically avoids these errors with minimal disruption.

Originally created by @jeremystretch on GitHub (Jan 15, 2020). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Extend the upgrade script (`upgrade.sh`) to automatically invalidate the cache by running `manage.py invalidate` for all apps. ### Justification After NetBox has been upgraded, cached data may conflict with the new code base and introduce errors until the cache expires. I believe #3909 is an example of this. Invalidating the cache automatically avoids these errors with minimal disruption.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 18:26:13 +01:00
adam closed this issue 2025-12-29 18:26:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3160