Merge pull request #10603 from toddlahman/master
Replace DELETE FROM to TRUNCATE to empty woocommerce_sessions table
This commit is contained in:
commit
17958835a9
|
@ -95,7 +95,7 @@ class WC_Admin_Status {
|
||||||
break;
|
break;
|
||||||
case 'clear_sessions' :
|
case 'clear_sessions' :
|
||||||
|
|
||||||
$wpdb->query( "DELETE FROM {$wpdb->prefix}woocommerce_sessions" );
|
$wpdb->query( "TRUNCATE {$wpdb->prefix}woocommerce_sessions" );
|
||||||
|
|
||||||
wp_cache_flush();
|
wp_cache_flush();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue