options['status'] ); // update 2.4.17 if ( version_compare( Cookie_Notice()->db_version, '2.4.16', '<=' ) ) { if ( $cache_active ) { // clear cache $this->delete_cache(); } } if ( $cache_active ) { // delete cache files after updating settings or status add_action( 'cn_configuration_updated', [ $this, 'delete_cache' ] ); } } /** * Delete all cache files. * * @return void */ public function delete_cache() { // clear cache if ( function_exists( 'speedycache_delete_cache' ) ) speedycache_delete_cache( true ); } } new Cookie_Notice_Modules_SpeedyCache();