1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Form handler code cleanup/optimization. Added getSupportedProviders() caching to reduce execution time.

This commit is contained in:
Cameron
2020-12-23 12:42:06 -08:00
parent c699a24ef0
commit 3cd4aa0018
5 changed files with 1252 additions and 959 deletions

View File

@@ -1200,6 +1200,13 @@ class e_user_provider
*/
public static function getSupportedProviders()
{
$regId = 'core/e107/user/provider';
if($cached = e107::getRegistry($regId))
{
return $cached;
}
$providers = [];
try
@@ -1232,6 +1239,9 @@ class e_user_provider
}
sort($providers);
e107::setRegistry($regId, $providers);
return $providers;
}