Buy B2BKing
$299 $199
B2BKing is designed to have minimal impact on your WordPress site's performance. In most cases, you should not notice any significant difference in speed before and after activating the plugin. Performance issues with B2BKing are rare, and when they do occur, they're typically caused by specific bottlenecks, conflicts, or misconfigurations rather than random issues.
This guide focuses primarily on diagnosing specific bottlenecks and troubleshooting plugin-specific issues. However, if your site isn't technically "broken" and you simply want to learn about the best infrastructure practices for a B2B store, the server you build on is critical.
Because B2B customers are almost always logged in and interacting with complex, user-specific dynamic pricing, traditional page caching is often bypassed. This means your server's CPU and database have to do the heavy lifting on almost every page load.
If you are setting up a new store or want to ensure your current host is up to the task, we highly recommend reading our dedicated infrastructure guide first:
👉 B2BKing Performance, Hosting & Caching Guide
If you're experiencing performance issues, first confirm that B2BKing is the cause:
Note: If the snippets and options below don't resolve your issue, contact our support team. We can run detailed tests, including code timing analysis, to identify the exact cause of any performance bottleneck.
If you're using B2BKing's product visibility features, this is crucial:
This single setting can make a significant difference in performance when dealing with product visibility.
If you're experiencing slow WordPress backend performance or general speed issues, add this snippet to your theme's functions.php file or a code snippets plugin:
// Disable permalink flushing on every page load add_filter('b2bking_flush_permalinks', '__return_false'); // Disable automatic cache flushing add_filter('b2bking_flush_cache_wp', '__return_false'); // Disable dashboard data calculations add_filter('b2bking_enable_dashboard_data', '__return_false'); // Extend cache time add_filter('b2bking_cache_time_setting', function($val){ return 86400000; }, 10, 1); // Do not bust variable product cache add_filter('b2bking_delete_wc_var_prices_transient', '__return_false');
If you suspect performance issues are related to B2BKing's dynamic rules system, or if you have a large number of rules, try this snippet:
// Enable simplified query system for dynamic rules add_filter('b2bking_use_simple_query_system', '__return_true');
This switches to a simpler, often faster query system for processing dynamic rules.
For sites experiencing slow loading times with the B2BKing bulk order form, implement these optimizations:
// Skip product sorting (can be time-intensive with large catalogs) add_filter('b2bking_bulkorder_skip_sort', '__return_true'); // Limit search results to 25 per page (adjust as needed) add_filter('b2bking_search_results_number_order_form_cream', function($results){ return 25; // Lower numbers = faster loading }, 10, 1); // Allow all products in order form without filtering add_filter('b2bking_allow_all_orderform', '__return_true'); // Skip individual variation checks for better performance add_filter('b2bking_orderform_skip_individual_variation_checks', '__return_true');
You can adjust the number of results per page (25 in the example) based on your needs. Fewer results per page will load faster.
We recommend WP Rocket with "User Cache" enabled. This creates unique cache entries for each user, which is essential for B2B sites where different users see different:
We have also found WP Rocket to be fairly lightweight and effective.
Be aware that certain caching setups can sometimes actually decrease performance when used with B2BKing:
If you're experiencing performance issues, try temporarily disabling any caching solution and testing the results.
Important: If your B2B site shows different prices, products, or content to different users (which is typical), standard caching solutions that serve the same cached content to all users are fundamentally incompatible and should not be used. Learn more about caching recommendations. It is essential to either have a unique cache for each user or to disable caching for logged-in users.
If you've tried the above optimizations and are still experiencing performance issues:
B2BKing performance issues are almost always solvable once the specific cause is identified.
Powered by BetterDocs