[wp-trac] [WordPress Trac] #37671: Emptying Bin with large amount of posts results in whitescreen
WordPress Trac
noreply at wordpress.org
Mon Aug 15 22:47:06 UTC 2016
#37671: Emptying Bin with large amount of posts results in whitescreen
-------------------------------+------------------------------
Reporter: atomicjack | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.5.3
Severity: normal | Resolution:
Keywords: | Focuses: administration
-------------------------------+------------------------------
Comment (by peterwilsoncc):
The process WP takes to empty the trash is:
* Loop through selected posts:
- check if user has permission to delete post, die if not
- check the type of post
- delete the post
- delete revisions (itself a loop)
- delete comments (a loop)
- delete post meta (a loop)
- DELETE post
- unschedule if a future post
The action from this ticket becomes: optimise the processes of emptying
the trash and deleting a post.
Further discussion would be whether this is worth-while, as is often the
case the questions and thought experiments to run are:
* what are the pros and cons of doing so
* what are the pros and cons of not doing so
* what is the worst that can happen by doing this
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37671#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list