Title: Database Growing &#8211;  _wc_session
Last modified: August 21, 2016

---

# Database Growing – _wc_session

 *  [Chris](https://wordpress.org/support/users/lamordnt/)
 * (@lamordnt)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/)
 * After upgrading Woocommerce I am noticing that my database has grown uncontrollably.
   The wp_post_meta table and the wp_options table are both over 2mb which they 
   never were before. At first, the wp_options table was over 15mb but I Was able
   to clean it up by going to “System Status” and using the clear all sessions button.
 * It works for a few moments and then instantly the database starts growing again.
   I am at a loss for what to do. anyone else experience this or have any suggestions?
 * [http://wordpress.org/plugins/woocommerce/](http://wordpress.org/plugins/woocommerce/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Watch Teller](https://wordpress.org/support/users/watchteller/)
 * (@watchteller)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4045986)
 * Me too…
 *  Thread Starter [Chris](https://wordpress.org/support/users/lamordnt/)
 * (@lamordnt)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046018)
 * Anyone have suggestions on this? In just 1 day my wp-options table has gone from
   2mb to 34mb!!! Help!!!
 *  [BerryReview](https://wordpress.org/support/users/rhalevy/)
 * (@rhalevy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046075)
 * Are you running Wp-Cron manually from the command line? That seems to not be 
   clearing out the WC sessions. I am still trying to find a way to solve this… 
   Had 3.9 million records of wcsessions
 *  Thread Starter [Chris](https://wordpress.org/support/users/lamordnt/)
 * (@lamordnt)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046097)
 * Not really sure what it means to run wp-cron manually. I wound up restoring my
   site to an older version but at some point will need to update. Hoping Woocommerce
   can work this out.
 *  Thread Starter [Chris](https://wordpress.org/support/users/lamordnt/)
 * (@lamordnt)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046126)
 * OK so I think I figured this one out. It was a bit easier than thought. In Woocommerce
   settings I did not have “clear cart when logging out” under the settings. Checked
   that and my DB seems to be under control.
 *  [Watch Teller](https://wordpress.org/support/users/watchteller/)
 * (@watchteller)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046127)
 * [@chris](https://wordpress.org/support/users/chris/),
 * Thanks you update here.
 * Cheers.
 *  [RgDesign](https://wordpress.org/support/users/rgdesign/)
 * (@rgdesign)
 * [12 years ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046162)
 * Hey Guys specifically [@chris](https://wordpress.org/support/users/chris/)
 * I have been reading up on this issue and can not locate the “clear cart when 
   logging out” option that is mentioned above.
 * Did this option go away in the newer versions? I am currently running 2.1.2 and
   getting ready to upgrade but I am getting a lot of 500 Internal server errors.
 * Are these options now under the WooCommerce > System Status > Tools > Clear All
   Sessions button?
 * I am also going to try adding this to my robots txt file to see if this helps
   keep my DB smaller [http://wordpress.org/support/topic/a-lot-of-wc-sessions](http://wordpress.org/support/topic/a-lot-of-wc-sessions)
 * Any suggestions?
 * Thanks!
 *  Thread Starter [Chris](https://wordpress.org/support/users/lamordnt/)
 * (@lamordnt)
 * [12 years ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046163)
 * I have two sites, one running 2.1.3 and one running 2.1.6 and on both the clear
   cart when logging out option is gone. Neither site is having problems with the
   database size anymore so they might have fixed it with the never versions. I 
   would suggest backing up your site then upgrading it to see if the newer version
   fixes your problem.
 *  [John Dao](https://wordpress.org/support/users/tiggerlu/)
 * (@tiggerlu)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046171)
 * I’ve been investigating this issue for months, our wp_options table is in the
   gigabytes now.
 * The problem is WooCommerce isn’t cleaning up after itself, and it’s related to
   the cron job not running. So easiest way to check is if you can run wp-cron.php
   from the outside (http), in my case we had accidentally blocked the port.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Database Growing – _wc_session’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 9 replies
 * 5 participants
 * Last reply from: [John Dao](https://wordpress.org/support/users/tiggerlu/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/database-growing-_wc_session/#post-4046171)
 * Status: not resolved