SMF Support > SMF 2.0.x Support

Quoting a post/using full reply seems to take a while to load

(1/2) > >>

Groovystar:
On my site.

When I hit the quote button it seems to delay as it tries to get to the reply page. Once that page loads and I type a reply and send the post through, though, speed seems to be more or less normal.

The same thing happens for loading the "regular" reply page. Quick reply seems to load normal but there's a delay when hitting the reply button to get to full reply. Once I actually send a post through the speed it normal for that.

Is there anything I should do to try and figure out what's causing the hangup?

live627:
Perhaps try to find slow query in Post.php...

Chas Large:
Is this a recent issue? if so it might suggest a modification you have installed may be slowing things down.

If it's always been slow, are you using the default theme?

Groovystar:
It seems to happen more at some times than others and maybe with some threads more than others.

I am not using the default theme, no.

Live: how would I do that?

Chas Large:
To display debugging information that shows the speed of all the queries used on your forum, you need to enable debug mode, as described in the On-line manual here:

http://wiki.simplemachines.org/smf/Settings.php#.24db_show_debug

Essentially you do it this way:

Ftp down your settings.php file from your forum root directory.

Make a backup copy of it.

Open it in a plain text editor and look for the following code:


--- Code: ---$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 0;
--- End code ---

Add another line after the error_send line like this


--- Code: ---$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 0;
$db_show_debug = true;
--- End code ---

Upload the file back to your forum root and from then on you'll see something like this at the bottom of every page:


--- Quote from: debug info ---Templates: 3: index (default), Portal (default), Display (default).
Sub templates: 8: init, html_above, body_above, portal_above, main, portal_below, body_below, html_below.
Language files: 2: SPortal.english (default), index+Modifications.english (default).
Style sheets: 1: portal (default).
Files included: 25 - 828KB. (show)
Cache hits: 12: 0.05834s for 13170 bytes (show)
Queries used: 21.

[Show Queries]
--- End quote ---

Click the link "Show Queries" at the bottom to display the database queries and the times each of them take to operate. Most will show something like


--- Quote from: a query time ---  in .../Sources/Load.php line 1408, which took 0.00015497 seconds at 0.28530192 into request.
--- End quote ---
So anything showing a huge number of seconds to occur will give you an idea of the part of the code that is running slow.

The basic debug info will be visible to all your members so you may want to advise them before hand that you're going to enable this feature. They won't be able to see the queries though.

You could put the forum into maintenance mode if you're concerned about them seeing the debug info.

Navigation

[0] Message Index

[#] Next page

Go to full version