Moved to godaddy and heaving all sorts of issues. The site loads fast except the home page takes 2 seconds to load.
Generated in 2.0611131 seconds (3.09% PHP / 96.91% MySQL)
SQL Queries: 14 / Global Parsing Time: 0.0394151 / Memory Usage: 7 MB
PHP version: 5.4.43 / Server Load: 1.84 / GZip Compression: Disabled
On other always has Server Load 0 now it's like 4 man that is crazy. PHP memory limit is 256MB can this be the issue?
Generation Statistics
Page Generation Time: 2.25245308876 seconds No. DB Queries: 13
PHP Processing Time: 0.1078687 seconds (4.79%) DB Processing Time: 2.1445844 seconds (95.21%)
Extensions Used: mysqli, xml Global.php Processing Time: 0.1104200 seconds
PHP Version: 5.4.43 Server Load: 2.23
GZip Encoding Status: Disabled No. Templates Used: 43 (43 Cached / 0 Manually Loaded)
Memory Usage: 7 MB (7340032 bytes) Memory Limit: 256M
Found the problem it's a query i have!
Can anybody tell me why it takes 2 sec to generate???
Generated in 2.0611131 seconds (3.09% PHP / 96.91% MySQL)
SQL Queries: 14 / Global Parsing Time: 0.0394151 / Memory Usage: 7 MB
PHP version: 5.4.43 / Server Load: 1.84 / GZip Compression: Disabled
On other always has Server Load 0 now it's like 4 man that is crazy. PHP memory limit is 256MB can this be the issue?
Generation Statistics
Page Generation Time: 2.25245308876 seconds No. DB Queries: 13
PHP Processing Time: 0.1078687 seconds (4.79%) DB Processing Time: 2.1445844 seconds (95.21%)
Extensions Used: mysqli, xml Global.php Processing Time: 0.1104200 seconds
PHP Version: 5.4.43 Server Load: 2.23
GZip Encoding Status: Disabled No. Templates Used: 43 (43 Cached / 0 Manually Loaded)
Memory Usage: 7 MB (7340032 bytes) Memory Limit: 256M
Found the problem it's a query i have!
Can anybody tell me why it takes 2 sec to generate???
$query = $db->query("
SELECT t.tid, t.fid, t.subject, t.dateline,
t.lastposter, t.lastposteruid, f.name,
u.usergroup, u.displaygroup, p.displaystyle AS threadprefix, l.displaygroup AS ldisplaygroup, l.usergroup AS lusergroup, s.tid as tagstid, s.tags
FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix)
INNER JOIN ".TABLE_PREFIX."forums f
ON (f.fid = t.fid)
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=t.uid)
LEFT JOIN ".TABLE_PREFIX."users l ON (l.uid=t.lastposteruid)
LEFT JOIN ".TABLE_PREFIX."tags s ON (t.tid=s.tid)
WHERE 1=1 $unviewwhere AND t.visible='1' AND t.closed NOT LIKE 'moved|%'
ORDER BY t.dateline DESC LIMIT $max");