From 2fad7a3efb825c57219b5c910c130f9078e03398 Mon Sep 17 00:00:00 2001 From: Znote Date: Thu, 26 Jan 2017 22:09:53 +0100 Subject: [PATCH] Improved flags system & reduce query usage in online list Using http://flag.znote.eu as an external image server for flags. Online list is now stored in a 30 seconds quick cache. Reduced query usage in online list to 1 instead of 1 + players online amounts of queries. --- characterprofile.php | 19 +++++++++------ config.php | 8 ++++++- engine/function/general.php | 7 ------ highscores.php | 5 ++-- onlinelist.php | 48 ++++++++++++++++++++++++++++--------- 5 files changed, 59 insertions(+), 28 deletions(-) diff --git a/characterprofile.php b/characterprofile.php index cec8686..722a5ce 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -29,7 +29,6 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) } $profile_znote_data = user_znote_character_data($user_id, 'created', 'hide_char', 'comment'); - $account_data = user_znote_account_data($profile_data['account_id'], 'flag'); $guild_exist = false; @@ -47,12 +46,18 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false)

Profile: