| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; |
| 3 |
|
| 4 |
class NginxHelper extends berqIntegrations { |
| 5 |
function __construct() { |
| 6 |
add_action('berqwp_flush_all_cache', [$this, 'flush_cache']); |
| 7 |
add_action('berqwp_stored_page_cache', [$this, 'flush_cache']); |
| 8 |
add_action('berqwp_flush_page_cache', [$this, 'flush_cache']); |
| 9 |
} |
| 10 |
|
| 11 |
function flush_cache() |
| 12 |
{ |
| 13 |
if (class_exists('Nginx_Helper')) { |
| 14 |
do_action('rt_nginx_helper_purge_all'); |
| 15 |
} |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
new NginxHelper(); |