Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable cache on field level #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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