static function Get_fb_application_cached($user_ID) { global $blog_id; $app_key = c_al2fb_transient_cache . md5('app' . $blog_id . $user_ID); $app = get_transient($app_key); if (get_option(c_al2fb_option_debug)) { $app = false; } if ($app === false) { $app = WPAL2Int::Get_fb_application($user_ID); $duration = WPAL2Int::Get_duration(false); set_transient($app_key, $app, $duration); } return $app; }