How to Cleanup the WooCommerce GeoIP Related Transients

Heads up: This page may include affiliate links. Read the full disclosure.

WooCommerce is one of the most commonly used plugins to add e-commerce features to a site. One of the most regular issues that WooCommerce can cause to a site in terms of performance in the site’s database is related to transients.

Transients are temporary data that is stored as options in the options database table. But certain types of WooCommerce transients do not expire and then get deleted as expired transients.

If you are using the geolocation feature to work out the customer’s default location which uses the MaxMind API then those transients can cause a lot of bloat.

You can check if you have that setting enabled in WooCommerce from wp-admin go to;

WooCommerce > Settings > General

Currently, the geolocate transients are stored for a week which means if you have a normal level of customers on the site then over time you could end up with 20k to 40k transients all related to the geolocate feature in WooCommerce.

You can delete those transient types by using phpMyAdmin or a similar database manager by searching for the following option names from the options database table;

_transient_external_ip_address_%
_transient_timeout_external_ip_address_%

Until the geolocate transients are changed in WooCommerce core to expire after two hours or even daily it is not recommended to use the geolocate feature in WooCommerce due the performance issues it can cause.

Once you find those transients then you can delete all of those that are found for some performance gains.

If you need to delete all of the transients in a site database then you can search for the following option name;

_transient_%

You can easily delete WooCommerce expired transients and all WooCommerce related transients in WooCommerce from;

WooCommerce > Status > Tools

Keeping transients created by WooCommerce under control will help improve your wp-admin load times as well as helping your site’s database performance.

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.