static function Get_fb_groups_cached($user_ID) { global $blog_id; $groups_key = c_al2fb_transient_cache . md5('grp' . $blog_id . $user_ID); $groups = get_transient($groups_key); if (get_option(c_al2fb_option_debug)) { $groups = false; } if ($groups === false) { $groups = WPAL2Int::Get_fb_groups($user_ID); $duration = WPAL2Int::Get_duration(false); set_transient($groups_key, $groups, $duration); } return $groups; }