reduce pixiv api access token duration

This commit is contained in:
r888888888
2015-08-24 19:32:08 -07:00
parent d5cadebd88
commit 80b4db18d2

View File

@@ -142,7 +142,7 @@ private
end
def access_token
Cache.get("pixiv-papi-access-token", 3000) do
Cache.get("pixiv-papi-access-token", 300) do
access_token = nil
headers = {
"Referer" => "http://www.pixiv.net"