# searchpro/4.1.13/inc/thirdparty/plugin/WooJTLConnector.php

BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS &amp; JavaScript, version 4.1.13. 23 lines.

- Page: https://pluginprobe.com/plugins/searchpro/4.1.13/code/inc/thirdparty/plugin/WooJTLConnector.php
- Raw: https://pluginprobe.com/plugins/searchpro/4.1.13/raw/inc/thirdparty/plugin/WooJTLConnector.php
- Modified: 2025-06-08T12:06:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/searchpro/4.1.13/code/inc/thirdparty/plugin/WooJTLConnector.php#L10-L20`.

```php
<?php

if (!defined('ABSPATH')) exit;

class berqWooJTLConnector extends berqIntegrations {
    function __construct() {
        add_filter( 'berqwp_can_flush_home_cache_on_post_update', [$this, 'disable_flush_cache'], 10, 1 );
        // add_filter( 'berqwp_can_flush_cache_on_post_update', [$this, 'disable_flush_cache'], 10, 1 );
    }

    function disable_flush_cache($status) {

        if (class_exists('\JtlWooCommerceConnector\Controllers\ProductController')) {
            return false;
        }

        return $status;

    }

}

new berqWooJTLConnector();
```
