1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

fix #4459 - Fix caching issue resulting in erroneous nested data for regions, rack groups, and tenant groups

This commit is contained in:
John Anderson
2020-04-22 16:45:26 -04:00
parent 5ea92dda4b
commit 11ee6f417f
2 changed files with 19 additions and 0 deletions

View File

@@ -479,11 +479,14 @@ CACHEOPS = {
'auth.*': {'ops': ('fetch', 'get')},
'auth.permission': {'ops': 'all'},
'circuits.*': {'ops': 'all'},
'dcim.region': None, # MPTT models are exempt due to raw sql
'dcim.rackgroup': None, # MPTT models are exempt due to raw sql
'dcim.*': {'ops': 'all'},
'ipam.*': {'ops': 'all'},
'extras.*': {'ops': 'all'},
'secrets.*': {'ops': 'all'},
'users.*': {'ops': 'all'},
'tenancy.tenantgroup': None, # MPTT models are exempt due to raw sql
'tenancy.*': {'ops': 'all'},
'virtualization.*': {'ops': 'all'},
}