PluginProbe
WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation / trunk
WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation vtrunk
1.4.48 1.4.47 1.4.46 1.4.45 1.4.44 1.4.43 1.4.42 1.4.41 1.4.40 1.4.39 1.4.38 1.4.37 1.4.36 1.1.2 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 All 64 releases
optin / includes / compatibility / class-caching-plugins.php

class-caching-plugins.php in WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation trunk, at includes/compatibility/class-caching-plugins.php

39 lines 654 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:ignore
2
3 namespace OPTN\Includes\Compatibility;
4
5 defined( 'ABSPATH' ) || exit;
6
7 /**
8 * Class CachingPlugins
9 */
10 class CachingPlugins {
11
12 /**
13 * Init hooks
14 *
15 * @return void
16 */
17 public static function init() {
18 add_action(
19 'optn_compat_purge_cache',
20 function () {
21
22 // Litespeed.
23 // ISSUE:OPT-106 Disabling for now.
24 // do_action( 'litespeed_purge_all' );
25
26 // WP Rocket.
27 if ( function_exists( 'rocket_clean_domain' ) ) {
28 rocket_clean_domain();
29 }
30
31 // W3 Total Cache.
32 if ( function_exists( 'w3tc_flush_all' ) ) {
33 w3tc_flush_all();
34 }
35 }
36 );
37 }
38 }
39