[Resolved] [Plugin: Scripts n Styles] Consider revising settings page.
Currently, in your plugin there’s this line:
In the usage section.
`$all_posts = get_posts( array( ‘numberposts’ => -1, ‘post_type’ => ‘any’, ‘post_status’ => ‘any’ ) );
I work with sites with 5000+ posts, this line ends up needing more than 256 MB of memory.
I would recommend either removing the usage section OR finding a way to make smaller requests.
With a site that has 5000+ posts, plus media assets, other plugins with post types that query is HUGE.
I’ve had to actually comment it out – I really like using the plugin and I didn’t want that line to be the reason I didn’t use it.
- The topic ‘[Resolved] [Plugin: Scripts n Styles] Consider revising settings page.’ is closed to new replies.