Skip to content

Add short lived cache to Drupal OAuth access token results

In testing, the accounts.e.o OAuth module doesn't scale well with increased parallel requests, and leads to incrementally large processing times to validate OAuth tokens when required. To counteract this, we should cache these tokens for a short time, and instead just check the expires header to see if we need to invalidate and error out.