Skip to content

Conversation

@kkthxbye-code
Copy link
Contributor

Fixes: #9122

  • Adds a clearcache management command.
  • Runs the clearcache command when running upgrade.sh

Clearing the cache on upgrade prevents having a stale openapi definition.

I have an alternative version not adding a command and just calling manage.py shell -i python .c <COMMAND>, however the clearcache command can also be use to clear for example the "new update" notification, which has been mentioned as an issue a couple of times (#8800).

@jeremystretch jeremystretch merged commit b172ae6 into netbox-community:develop May 4, 2022
@kkthxbye-code kkthxbye-code deleted the fix-9122 branch May 9, 2022 16:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cached REST API spec introduced in #6423 is stale after updates

2 participants