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:
@@ -286,7 +286,7 @@ module Sources
|
|||||||
Danbooru.config.deviantart_client_secret,
|
Danbooru.config.deviantart_client_secret,
|
||||||
Danbooru.config.httparty_options
|
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
|
api_client.access_token.to_hash
|
||||||
end
|
end
|
||||||
api_client
|
api_client
|
||||||
|
|||||||
Reference in New Issue
Block a user