Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#16785 closed defect (bug) (duplicate)

Move cleanup of old auto-drafts to wp_cron

Reported by: prettyboymp's profile prettyboymp Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Performance Keywords: has-patch
Focuses: Cc:

Description

get_default_post_to_edit() currently runs a query to delete old auto-draft posts. This doesn't need to be run every time a new post is created and should be converted to a cron task that runs once a day at most.

Attachments (1)

16785.diff (1.7 KB) - added by solarissmoke 14 years ago.
Delete old auto-drafts in wp_scheduled_delete instead of get_default_post_to_edit

Download all attachments as: .zip

Change History (4)

#1 @scribu
14 years ago

Maybe this could be tied to the trash emptying job?

@solarissmoke
14 years ago

Delete old auto-drafts in wp_scheduled_delete instead of get_default_post_to_edit

#2 @solarissmoke
14 years ago

  • Keywords has-patch added; needs-patch removed

#3 @scribu
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Marking as dup of #19663 since its patch has already been reviewed.

Note: See TracTickets for help on using tickets.