django-dbsettings icon indicating copy to clipboard operation
django-dbsettings copied to clipboard

Allow to disable cache on field level

Open paulogiacomelli opened this issue 1 year ago • 0 comments

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.

paulogiacomelli avatar Oct 09 '24 21:10 paulogiacomelli