Problem/Motivation

Drupal is very slowly moving to support persistent app servers as described in #2218651: [meta] Make Drupal compatible with persistent app servers like ReactPHP, PHP-PM, PHPFastCGI, FrankenPHP, Swoole. Key module's use of drupal_static() can cause keys to be exposed to the wrong user in such an environment, so we should refactor the caching to be clearly per request.

I'm opening this MR as an experiment against 1.x because that's what I'm using to test my site, but it should almost certainly be committed to Key 2.x instead.

Issue fork key-3624641

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ptmkenny created an issue.

mably’s picture

drupal_static() is deprecated in core 11.5.