database caching to work with WooCommerce you must add %1$s to the "Ignored Query Strings" option in W3 Total Cache settings.', 'woocommerce' ), '_wc_session_
', esc_url( admin_url( 'admin.php?page=w3tc_dbcache' ) ) ) );
?>
query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s LIMIT %d;", '\_transient\_%' . $version, $limit ) ); // WPCS: cache ok, db call ok.
// If affected rows is equal to limit, there are more rows to delete. Delete in 30 secs.
if ( $affected === $limit ) {
wp_schedule_single_event( time() + 30, 'delete_version_transients', array( $version ) );
}
}
}
}
WC_Cache_Helper::init();