Habari reports that I have 2735 posts. When I click edit on any of them
it comes up immediately.
The code that fetches your post for display is the same that's used to
fetch it for editing. The only difference on the publish page that I
can think of is if you have other plugins activated that interact with
that page. I don't know of any that would cause the page to slow down
noticeably like you describe, though.
Owen
Need to do something about that.
Chris
The content of the media browser is loaded via Ajax only when the tab
for it is clicked. It shouldn't affect the load speed of the publish
page. At least that's the intended function.
> Need to do something about that.
If curl is affecting the load of the publish page somehow due to the way
a silo works, then yes, that should be squashed quickly.
Owen
Chris
Need to do something about that.
If curl is affecting the load of the publish page somehow due to the way
a silo works, then yes, that should be squashed quickly.
You get curl timeout messages on the publish page, or the dashboard? On
the dashboard, I understand this error. On the publish page, I do not.
> Just out of curiosity, why are we using curl rather than HTTP::Request
> or other less archaic method?
We actually have a Habari class, RemoteRequest, that abstracts the curl
call, just like HTTP::Request would.
Owen
Rich Bowen wrote:I get curl timeout messages on a once-a-week basis.
You get curl timeout messages on the publish page, or the dashboard? On
the dashboard, I understand this error. On the publish page, I do not.
Just out of curiosity, why are we using curl rather than HTTP::Requestor other less archaic method?
We actually have a Habari class, RemoteRequest, that abstracts the curl
call, just like HTTP::Request would.
I'm experiencing CURL errors on a local install with no plugins active
as well as a live site when trying to edit a post. I'm wondering if
it's releated to the "closed" ticket http://trac.habariproject.org/habari/ticket/349
On Mon, Aug 18, 2008 at 10:29, Michael Bishop <miklb....@gmail.com> wrote:
I'm experiencing CURL errors on a local install with no plugins active
as well as a live site when trying to edit a post. I'm wondering if
it's releated to the "closed" ticket http://trac.habariproject.org/habari/ticket/349
How can I see if it's a CURL error? (what is CURL?)
Have we actually found out what the problem is?
I _think_ it might have something to do with the tags, so if there's a way to turn them off, I'd love to do that and see what happens.
can you try the following:
1) add define('DEBUG', true); to your config.php
2) add the following code to your theme, footer.php will do:
include HABARI_PATH . '/system/admin/db_profiling.php';
3) load the page that is causing the slowness with ?db_profile
appended. eg. http://example.com/foo?db_profile. Also note that the
admin already has this functionality built in, so you can just add
?db_profile to any admin url.
4) copy and paste the output, or just examine the output to see if any
queries are taking long amounts of time. eg. you will see the actual
sql query followed by the time to execute it:
SELECT * FROM habari__sessions WHERE token = ?
Time to Execute: 0.00048828125
I doubt that any of the queries will be causing the slowness. It is
most likely do to RemoteRequest which has a default timeout of 2 min,
iirc. So if no queries are causing it try:
1) line 48 of system/classes/remoterequest.php looks like:
public function __construct( $url, $method= 'GET', $timeout= 180 )
Change the timeout to something smaller, say 5. (that is in seconds).
so it should read:
public function __construct( $url, $method= 'GET', $timeout= 5 )
2) load the page causing problems, and see if that made it faster. If
so, we will have to do some backtracing to see what code is causing
the timeout...
Also note you must logged in to use that...
I'm not 99.9% sure it's the tags that are the problem.
Does anyone use that panel? For making spelling is correct perhaps?
I've always found it redundant, but at least I can turn it off now, even if it's hacky. Thanks Ali.
Spiffy. You'd mentioned several other problems along the way in various places - are there any left still causing you problems?
On Thu, Aug 21, 2008 at 5:27 PM, Michael Heilemann <heil...@gmail.com> wrote:
I didn't explain properly: Removing the tags from the publish page sped up things tremendously. It is now fast and wonderful.On Thu, Aug 21, 2008 at 18:10, Matt Read <matt....@gmail.com> wrote:
Also note you must logged in to use that...
On Thu, Aug 21, 2008 at 12:09 PM, Matt Read <matt....@gmail.com> wrote:
> 4) copy and paste the output, or just examine the output to see if any
> queries are taking long amounts of time. eg. you will see the actual
> sql query followed by the time to execute it:
--
This is definitely a problem with your theme.You need to make sure 2 things:1) The search form has the correct names and ids. Look at K2 for reference.2) Your template checks to make sure $criteria is set before actually displaying it.
We need to check and make sure the default rewrite rules were installed correctly. I have not seen or heard of this before (search not working) it is working on all my sites running Habari.