Skip to content

Stop caching Atomic.retry property#26

Open
cjwatson wants to merge 1 commit into
AmbitionEng:mainfrom
cjwatson:uncached-retry
Open

Stop caching Atomic.retry property#26
cjwatson wants to merge 1 commit into
AmbitionEng:mainfrom
cjwatson:uncached-retry

Conversation

@cjwatson

Copy link
Copy Markdown

The cache was of negligible benefit since django.conf.settings already caches attributes fetched from it, and it meant that things like override_settings(PGTRANSACTION_RETRY=0) in tests weren't reliable.

Fixes: #25

The cache was of negligible benefit since `django.conf.settings` already
caches attributes fetched from it, and it meant that things like
`override_settings(PGTRANSACTION_RETRY=0)` in tests weren't reliable.

Fixes: AmbitionEng#25
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.

Caching of Atomic.retry property is difficult to override in tests

1 participant