Skip to content

AccessTokenResponse Cache fix#67

Merged
denisneuf merged 2 commits into
denisneuf:mainfrom
zonwizard:fix-auth-cache
Aug 4, 2022
Merged

AccessTokenResponse Cache fix#67
denisneuf merged 2 commits into
denisneuf:mainfrom
zonwizard:fix-auth-cache

Conversation

@zonwizard
Copy link
Copy Markdown

Closes #61

access token cache is not reset with every request
cache expires after 3200sec instead of 3600sec
cache size param in env variable

Copy link
Copy Markdown
Owner

@denisneuf denisneuf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid same environment uses the same var, need to be changed to:

os.environ.get('AD_API_AUTH_CACHE_SIZE', 10)), ttl=3200)

AD_API_AUTH_CACHE_SIZE

@zonwizard
Copy link
Copy Markdown
Author

You're right!
I've just pushed a new commit

@denisneuf denisneuf merged commit 896c3a6 into denisneuf:main Aug 4, 2022
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.

AccessTokenResponse Cache is cleared with every new access token request

2 participants