Title: Eats up all memory
Last modified: June 7, 2023

---

# Eats up all memory

 *  Resolved [briandd](https://wordpress.org/support/users/briandd/)
 * (@briandd)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/eats-up-all-memory/)
 * The plugin is requesting everything from the Posts table and storing the content
   in variables, with a few thousands articles it results in the usage of 1GB of
   memory in the admin pages of contact form 7.
 * Is there a way you can optimize the queries? (eg, if only Post IDs and Titles
   are needed, only request those).
 * library/class-admin.php
 * […]
 *     ```wp-block-code
       $args = array( 'numberposts' => -1);
       $posts = get_posts($args);
       ```
   
    -  This topic was modified 3 years, 1 month ago by [briandd](https://wordpress.org/support/users/briandd/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [rajkakadiya](https://wordpress.org/support/users/rajkakadiya/)
 * (@rajkakadiya)
 * [3 years ago](https://wordpress.org/support/topic/eats-up-all-memory/#post-16878028)
 * Hi Briandd,
   Sorry for the inconvenience. I wanted to inform you that I have implemented
   a search feature for posts/pages on the plugin, making it easier for you to select
   post/page.To take advantage of this new functionality, I kindly request you to
   update the version to 1.6. Should you encounter any difficulties or have any 
   questions, please don’t hesitate to let me know. I’ll be more than happy to assist
   you.
 * Thank you for your attention and cooperation.

Viewing 1 replies (of 1 total)

The topic ‘Eats up all memory’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cf7-redirects_e5e2f6.svg)
 * [Contact Form 7 Redirects](https://wordpress.org/plugins/cf7-redirects/)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-redirects/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rajkakadiya](https://wordpress.org/support/users/rajkakadiya/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/eats-up-all-memory/#post-16878028)
 * Status: resolved