Documentation: "Administration / Replicating NetBox" cache invalidation doesn't work as stated #5360

Closed
opened 2025-12-29 19:27:08 +01:00 by adam · 2 comments
Owner

Originally created by @cs-1 on GitHub (Sep 13, 2021).

Originally assigned to: @jeremystretch on GitHub.

Change Type

Correction

Area

Administration/development

Proposed Changes

The current "Replicating NetBox" documentation says that the cache of the source machine should be invalidated first before moving NetBox data to a different machine by issueing

# source /opt/netbox/venv/bin/activate
(venv) # python3 manage.py invalidate all

However, the "invalidate" command for "manage.py" doesn't exist anymore in NetBox v3.0.2. Running the latter command yields

Unknown command: 'invalidate'
Type 'manage.py help' for usage.

The documentation should be changed to either contain the new command for invalidating the cache or -- if cache invalidation isn't necessary anymore -- the section about cache invalidation should be removed.

Originally created by @cs-1 on GitHub (Sep 13, 2021). Originally assigned to: @jeremystretch on GitHub. ### Change Type Correction ### Area Administration/development ### Proposed Changes The current "Replicating NetBox" documentation says that the cache of the source machine should be invalidated first before moving NetBox data to a different machine by issueing ``` # source /opt/netbox/venv/bin/activate (venv) # python3 manage.py invalidate all ``` However, the "invalidate" command for "manage.py" doesn't exist anymore in NetBox v3.0.2. Running the latter command yields ``` Unknown command: 'invalidate' Type 'manage.py help' for usage. ``` The documentation should be changed to either contain the new command for invalidating the cache or -- if cache invalidation isn't necessary anymore -- the section about cache invalidation should be removed.
adam added the status: acceptedtype: documentation labels 2025-12-29 19:27:08 +01:00
adam closed this issue 2025-12-29 19:27:08 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 13, 2021):

Queryset caching was removed under #6639 in v3.0. Looks like this bit in the documentation was missed.

@jeremystretch commented on GitHub (Sep 13, 2021): Queryset caching was removed under #6639 in v3.0. Looks like this bit in the documentation was missed.
Author
Owner

@cs-1 commented on GitHub (Sep 13, 2021):

Thanks for the info and for looking into this.

@cs-1 commented on GitHub (Sep 13, 2021): Thanks for the info and for looking into this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5360