cdn_cacheid = ''; $this->kinsta_cache = new Cache( $this ); $this->kinsta_cache_purge = new Cache_Purge( $this ); $this->KinstaCachePurge = $this->kinsta_cache_purge; // phpcs:ignore $this->kmp_admin = new KMP_Admin( $this ); $this->banned_plugins = new Banned_Plugins(); /** * Initialize the autopurge manager and orchastrator. */ $autopurge = new Autopurge(); $autopurge->hook(); $autopurge->add( new WPPostController($this), new WPOptionController($this), new WPThemeController($this), new WPThemeHeaderController($this), new WPThemeWidgetController($this), new WooCommerceController($this), new ACFController($this), new Elementor($this), ); $this->wp_cli = new KMP_WPCLI( $this, $autopurge ); } /** * Sets the required capability to view and use the cache purging options. * * @return string the required capability */ public function is_cdn_enabled() { return '' !== $this->cdn_cacheid; } }