Remove the clearcache
management command
#14458
Labels
status: accepted
This issue has been accepted for implementation
type: deprecation
Removal of existing functionality or behavior
Milestone
Proposed Changes
Remove the
clearcache
management command (from thecore
app), and omit it from the upgrade script.Justification
This command was introduced back when we were experimenting with query caching, and is no longer needed.I was mistaken; it was actually introduced under #9122 to provide a mechanism for clearing the cached API spec. However, this is also no longer used since we moved todrf-spectacular
(see #9608).The Django cache is currently used only for discrete caching operations, including:
There has already been at least one bug related to this function (see #14182). Additionally, plugins may utilize the cache for other purposes, and we cannot make the assumption that it is safe to clear other cached data.
Impact
Any mechanisms within NetBox or a plugin which employ caching will be responsible for their own cleanup, where applicable.
The text was updated successfully, but these errors were encountered: