Skip to content

wpsc-product custom post type admin list can cause out of memory fatal errors #2067

@JeffPyeBrook

Description

@JeffPyeBrook

Because the wpsc-product custom post type is hierarchical, the admin list table for products will override any posts per page settings and request all posts from the database when the list table is first displayed. See wp_edit_posts_query().

This causes out of memory fatal errors on sites with large product catalogs or small amounts of memory as each post is read into memory and cached with it's properties and meta.

Either the hierarchical post type needs to be overridden, or a default sort order needs to be set to avoid the out of memory condition.

Even when a fatal out of memory condition does not get triggered, this has a easily measurable negative impact on site performance and resource utilization.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions