| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) exit; |
| 4 |
|
| 5 |
class berqWooJTLConnector extends berqIntegrations { |
| 6 |
function __construct() { |
| 7 |
add_filter( 'berqwp_can_flush_home_cache_on_post_update', [$this, 'disable_flush_cache'], 10, 1 ); |
| 8 |
// add_filter( 'berqwp_can_flush_cache_on_post_update', [$this, 'disable_flush_cache'], 10, 1 ); |
| 9 |
} |
| 10 |
|
| 11 |
function disable_flush_cache($status) { |
| 12 |
|
| 13 |
if (class_exists('\JtlWooCommerceConnector\Controllers\ProductController')) { |
| 14 |
return false; |
| 15 |
} |
| 16 |
|
| 17 |
return $status; |
| 18 |
|
| 19 |
} |
| 20 |
|
| 21 |
} |
| 22 |
|
| 23 |
new berqWooJTLConnector(); |