From 7c759785e2712fb0759706f8f46ebaa8c6dc8ccc Mon Sep 17 00:00:00 2001 From: "joe.lapp" Date: Fri, 16 Sep 2005 22:55:57 +0200 Subject: auth_getUserData() now caches user info in a static darcs-hash:20050916205557-36b45-4135c42d0ccfd28c85cfbd7eb57a445c2aa74ffc.gz --- inc/auth/plain.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/auth/plain.php b/inc/auth/plain.php index 6178f1260..d9569c3fd 100644 --- a/inc/auth/plain.php +++ b/inc/auth/plain.php @@ -45,7 +45,11 @@ function auth_checkPass($user,$pass){ * @author Andreas Gohr */ function auth_getUserData($user){ - $users = auth_plain_loadUserData(); + static $users = null; + + if($users == null) { + $users = auth_plain_loadUserData(); + } return $users[$user]; } -- cgit v1.2.3