= r.get("pass:#{token}") deny_request(token, 'Invalid API key') and return false unless project = Project.find_by_token(token) end # Skip token and active checks for the next hour if project r.pipelined do r.set("pass:#{token}", project.id) r.expire("pass:#{token}", 3600) end end project_id || project.id end Wednesday, December 5, 12