8889841cwp-content/plugins/cookie-law-info/lite/admin/modules/cache/services/class-services.php000064400000002731150514403240033134 0ustar00home/clixcotz/tcchp.clix.co.tzis_active() ) { $this->run(); } } /** * Load plugin hooks * * @return void */ public function load_hooks() { add_action( 'cky_after_update_banner', array( $this, 'clear_cache' ) ); add_action( 'cky_after_update_cookie', array( $this, 'clear_cache' ) ); add_action( 'cky_after_update_cookie_category', array( $this, 'clear_cache' ) ); add_action( 'cky_after_connect', array( $this, 'clear_cache' ) ); add_action( 'cky_after_update_settings', array( $this, 'clear_cache' ) ); add_action( 'cky_after_activate', array( $this, 'clear_cache' ) ); add_action( 'cky_clear_cache', array( $this, 'clear_cache' ) ); } /** * Check if the the cache service is installed/active; * * @return boolean */ abstract public function is_active(); /** * Initializes the module. Always executed even if the module is deactivated. * * Do not use __construct in subclasses, use init() instead */ abstract public function clear_cache(); /** * Initializes the module. Always executed even if the module is deactivated. * * Do not use __construct in subclasses, use init() instead */ abstract public function run(); }