Skip to content

Conversation

paulogiacomelli
Copy link

This PR is to allow for setting disable_cache on a field level.

Reason behind the PR:

We currently have multi-threads, including background workers and main application updating a dbsetting. In our case this dbsetting is used for OAuth tokens. The setting is becoming stale since the main application can update the setting, however the background worker till has the state cached data.

This solves the issue by disabling cache on a field level, so we can disabled for specific field to tell anyone who accesses this setting, it should grab from the Database, and not from django cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant