From 2c2e7f31844d09e396c6256a42650e5337dfc112 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Wed, 18 Dec 2024 10:37:57 +0200 Subject: [PATCH] Add a reminder about performance implications --- class-two-factor-core.php | 1 + 1 file changed, 1 insertion(+) diff --git a/class-two-factor-core.php b/class-two-factor-core.php index 7c8cad14..a0a0fb59 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -289,6 +289,7 @@ public static function get_providers() { // Map provider keys to classes so that we can instantiate them. $providers = self::get_providers_classes( $providers ); + // TODO: Refactor this to avoid instantiating the provider instances every time this method is called. foreach ( $providers as $provider_key => $provider_class ) { try { $providers[ $provider_key ] = call_user_func( array( $provider_class, 'get_instance' ) );