deviantart: cache refresh token for 11 weeks

it's valid for 3 months according to this:
https://www.deviantart.com/developers/authentication#refresh

use 11 weeks instead to be safe
This commit is contained in:
lllusion3469
2020-05-10 21:01:10 +02:00
parent f58564a71f
commit 1a49ef46f9

View File

@@ -286,7 +286,7 @@ module Sources
Danbooru.config.deviantart_client_secret,
Danbooru.config.httparty_options
)
api_client.access_token = Cache.get("da-access-token", 55.minutes) do
api_client.access_token = Cache.get("da-access-token", 11.weeks) do
api_client.access_token.to_hash
end
api_client