You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 58 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Speedup admin area [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Sun Feb 29, 2004 6:57 pm Reply with quoteBack to top

Well i did but it takes big changes in the way your admin area works.
And you need to modify all your add-ons as well.

The problem:
A lot of nuke_authors queries are called.

Solution:

modify auth.php and change
Code:
$sql = "SELECT pwd FROM ".$prefix."_authors WHERE aid='$aid'";
  if (!($result = $db->sql_query($sql))) {
        echo "Selection from database failed!";
        exit;
  } else {
    $row = $db->sql_fetchrow($result);
    if($row[pwd] == $pwd && $row[pwd] != "") {
        $admintest = 1;
    }
  }
into
Code:
$sql = "SELECT * FROM ".$prefix."_authors WHERE aid='$aid'";
    if (!($result = $db->sql_query($sql))) {
        echo "Selection from database failed!";
        exit;
    } else {
        $admdata = $db->sql_fetchrow($result);
        if ($admdata['pwd'] == $pwd && $admdata['pwd'] != "") {
            $admintest = 1;
        } else {
            $admdata = array();
        }
    }

Now use $admdata everywhere you find a direction to $radminsuper and any other.
Also remove all sql queries that recieve radminsuper or any other radmin value.

This will reduce the admin pages with 1-xxx queries depending how much "links.*.php" and "modules/*.php" files call the query.

Use $admdata like this: $admdata['radminsuper']

_________________
Famous people never give their signature Rolling Eyes
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please Exclamation
Find all posts by djmazeView user's profileSend private messageVisit poster's website
LordShinyK
Corporal
Corporal


Joined: Oct 29, 2003
Posts: 51


PostPosted: Sun Mar 14, 2004 2:53 pm Reply with quoteBack to top

What's the improvement like ? Is it worth doing such a big change ?
Find all posts by LordShinyKView user's profileSend private message
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Sun Mar 14, 2004 3:50 pm Reply with quoteBack to top

No it's not worthy if you are already below 1 sec generations

_________________
Famous people never give their signature Rolling Eyes
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please Exclamation
Find all posts by djmazeView user's profileSend private messageVisit poster's website
hhg
Sergeant
Sergeant


Joined: Jan 18, 2004
Posts: 129


PostPosted: Thu Oct 07, 2004 7:06 am Reply with quoteBack to top

that coded slowed down my admin area, alot

_________________
Image
Find all posts by hhgView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.561 Seconds - 299 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::