Thread Starter
Chris
(@lamordnt)
Anyone have suggestions on this? In just 1 day my wp-options table has gone from 2mb to 34mb!!! Help!!!
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
(@lamordnt)
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
(@lamordnt)
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.
Hey Guys specifically @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
Any suggestions?
Thanks!
Thread Starter
Chris
(@lamordnt)
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.
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.