Hi
I've not long implemented a Joomla 1.5 site. At the start it seemed great, no problems, nice and quick. Then after a while it got to be slow - at some points painfully slow, even to the point of timing out. I've therefore been an avid reader of these forums to try to work out what's going wrong.
As a result, I've played with various extensions, installing, uninstalling, activating and deactivating, and nothing really helps that much. I've enabled caching, globally, for modules and at plugin level. This has done something but not much. I've now asked my host to enable the slow log query to see if I can turn up what the problem is.
I then came across the MYSQL "Explain" command, and the "Debug mode" in Joomla. I switched on the debug mode, loaded up my homepage, and took the queries (there were 17) into SQL one by one and ran them through the EXPLAIN query. I was expecting one of the extensions to be the problem, but it looks to me like two queries relating to table jos_session are actually causing the slowness. Have I uncovered a fault with session handling in 1.5.4? Here are the results from the EXPLAIN query:
Code:
EXPLAIN DELETE FROM jos_session WHERE (
time < '1217270705'
)
MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELETE
FROM jos_session
WHERE ( time < '1217270705' )' at line 1
Code:
EXPLAIN UPDATE `jos_session` SET `time` = '1217274305',
`userid` = '0',
`usertype` = '',
`username` = '',
`gid` = '0',
`guest` = '1',
`client_id` = '0',
`data` = '__default|a:7:{s:15:\"session.counter\";i:3;s:19:\"session.timer.start\";i:1217274124;s:18:\"session.timer.last\";i:1217274238;s:17:\"session.timer.now\";i:1217274278;s:22:\"session.client.browser\";s:89:\"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)\";s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:1:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":19:{s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:3:\"gid\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:3:\"aid\";i:0;s:5:\"guest\";i:1;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:97:\"/hsphere/local/home/icpadmin/immanuelchurchpenarth.org.uk/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}}}' WHERE session_id = '526161f0e43933e49685a8b4976c98be'
MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPDATE `jos_session`
SET `time`='1217274305',`userid`='0',`usertype`='',`use' at line 1
I have to say that I'm not a programmer - I'm actually a part-time lawyer, part-time minister! So in terms of technical skills I'm not that hot. But what I have noticed is that these queries appear on nearly every post where someone complains of slowness, it's just because they are seen to be "normal" and part of the core, they're never raised as issues.
My site is still slow (
http://www.immanuelchurch.org.uk), so it would be wonderful if someone who really knows what they're talking about could have a look at this and see if the problem could be resolved. Thanks v. much!