change papi token timeout
This commit is contained in:
@@ -384,6 +384,3 @@ DEPENDENCIES
|
||||
vcr
|
||||
webmock
|
||||
whenever
|
||||
|
||||
BUNDLED WITH
|
||||
1.10.0
|
||||
|
||||
@@ -142,7 +142,7 @@ private
|
||||
end
|
||||
|
||||
def access_token
|
||||
Cache.get("pixiv-papi-access-token", 300) do
|
||||
Cache.get("pixiv-papi-access-token", 60) do
|
||||
access_token = nil
|
||||
headers = {
|
||||
"Referer" => "http://www.pixiv.net"
|
||||
|
||||
Reference in New Issue
Block a user