Ticket #610 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

Write Post page uses 100% CPU

Reported by: JeremyVisser Assigned to: somebody
Priority: normal Milestone: WPMU 1.0
Component: component1 Version: 1.0
Severity: major Keywords: has-patch commit
Cc:

Description

Running WPMU trunk here.

If I go to the Write Post page (didn't test the Write Page page), my browser will run really slowly, and will max out the CPU usage. Also, the Save and Publish buttons tend to grey out every few seconds. Obviously a JavaScript? problem, but I don't know much about it, and don't really have time to debug it at the moment.

This occurs with r1266 (latest at time of writing), and was introduced in [1260]. r1259 is fine.

It's a bit of a blocker, as it was slowing down my dual-core 4.4GHz system. Imagine what would have happened if I tried to blog on an OLPC XO-1.

Attachments

autosave.patch (462 bytes) - added by intoxination on 04/30/08 02:21:37.

Change History

04/28/08 22:59:24 changed by Miliio

if ( !defined( 'AUTOSAVE_INTERVAL' ) )

define( 'AUTOSAVE_INTERVAL', 60 );

this should be in wp-settings.php but it's not there. It should solve the problem

04/28/08 23:06:57 changed by intoxination

I noticed the same thing on the trunk this weekend. Firebug shows it constantly sending requests out to the ajax backend. It almost sounds like the timeout isn't being obeyed (or was totally missed).

04/30/08 02:21:37 changed by intoxination

  • attachment autosave.patch added.

04/30/08 02:21:57 changed by intoxination

  • keywords set to has-patch.

Patch attached to fix this.

05/01/08 04:48:53 changed by JeremyVisser

  • keywords changed from has-patch to has-patch commit.

Ah, thanks for that. I wonder why it went missing.

A workaround is to put the define( 'AUTOSAVE_INTERVAL', 60 ); in your wp-config.php file, which also fixes it.

05/01/08 04:51:25 changed by JeremyVisser

Here's the change that killed it.

05/07/08 13:12:24 changed by hanifb

It should be defined in wp-settings.

see the http://trac.mu.wordpress.org/ticket/617 bug that is the duplicate.

05/07/08 14:32:49 changed by donncha

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1267], thanks!