Optimizing memory usage for large number of drafts
-
If I have large number of drafts, the plugin runs out of memory, doesn’t help even if I increase WP memory limit.
Since you are only using post ID, it’d be better if you just query that field so it does not entire post content in memory.
Here are the changes I made to get it working with large number of drafts.
1) Added $args[‘fields’]=>’ids’ before get_posts()
2) Replaced all $thisDraft->ID with $thisDraft since it only returns numeric ID array, not object.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Optimizing memory usage for large number of drafts’ is closed to new replies.