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

Move default caching_config to PluginConfig class

This commit is contained in:
Jeremy Stretch
2020-04-01 12:10:19 -04:00
parent b2f4ef06c7
commit 0432b1a6f9
3 changed files with 22 additions and 17 deletions

View File

@ -44,8 +44,10 @@ class PluginConfig(AppConfig):
# Middleware classes provided by the plugin
middleware = []
# Caching configuration
caching_config = {}
# Cacheops configuration. Cache all operations by default.
caching_config = {
'*': {'ops': 'all'},
}
# Default integration paths. Plugin authors can override these to customize the paths to
# integrated components.