| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) exit; |
| 4 |
|
| 5 |
class berqWpAllImport extends berqIntegrations { |
| 6 |
function __construct() { |
| 7 |
add_action( 'pmxi_before_post_import', [$this, 'disable_flush_cache'], 10, 1 ); |
| 8 |
} |
| 9 |
|
| 10 |
function disable_flush_cache($post_id) { |
| 11 |
|
| 12 |
add_filter( 'berqwp_can_flush_cache_on_post_update', '__return_false' ); |
| 13 |
add_filter( 'berqwp_can_flush_home_cache_on_post_update', '__return_false' ); |
| 14 |
|
| 15 |
} |
| 16 |
|
| 17 |
} |
| 18 |
|
| 19 |
new berqWpAllImport(); |