static function Get_fb_friends_cached($user_ID) { global $blog_id; $friends_key = c_al2fb_transient_cache . md5('frnd' . $blog_id . $user_ID); $friends = get_transient($friends_key); if (get_option(c_al2fb_option_debug)) { $friends = false; } if ($friends === false) { $friends = WPAL2Int::Get_fb_friends($user_ID); $duration = WPAL2Int::Get_duration(false); set_transient($friends_key, $friends, $duration); } return $friends; }