first commit
This commit is contained in:
16
wp-content/plugins/brizy/compatibilities/nc-easywp.php
Normal file
16
wp-content/plugins/brizy/compatibilities/nc-easywp.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
class Brizy_Compatibilities_NcEasywp {
|
||||
|
||||
public function __construct() {
|
||||
if ( class_exists( '\WPNCEasyWP\Http\Varnish\VarnishCache' ) ) {
|
||||
add_action( 'brizy_before_send_asset', [ $this, 'before_send_asset' ] );
|
||||
}
|
||||
}
|
||||
|
||||
public function before_send_asset() {
|
||||
do_action('clear_redis');
|
||||
do_action('clear_varnish');
|
||||
do_action('clear_opcache');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user