Skip to content

Caching utilizes webhooks configuration #4159

@DanSheps

Description

@DanSheps

Environment

  • Python version: 2.6
  • NetBox version: develop

Steps to Reproduce

  1. Configure a separate redis server for caching

Expected Behavior

The separate server is used

Observed Behavior

The redis server for WEBHOOKS is used

Technical details

In settings.py, redis for caching uses WEBHOOKS_REDIS instead of CACHING_REDIS

CACHING_REDIS = REDIS.get('caching', {})
CACHING_REDIS_HOST = WEBHOOKS_REDIS.get('HOST', 'localhost')
CACHING_REDIS_PORT = WEBHOOKS_REDIS.get('PORT', 6379)
CACHING_REDIS_PASSWORD = WEBHOOKS_REDIS.get('PASSWORD', '')
CACHING_REDIS_DATABASE = WEBHOOKS_REDIS.get('DATABASE', 0)
CACHING_REDIS_DEFAULT_TIMEOUT = WEBHOOKS_REDIS.get('DEFAULT_TIMEOUT', 300)
CACHING_REDIS_SSL = WEBHOOKS_REDIS.get('SSL', False)

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions