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 ElementorController( $this ), ); $this->wp_cli = new KMP_WPCLI( $this, $autopurge ); } catch ( \Throwable $throwable ) { error_log( sprintf( '[kinsta-mu-plugins.ERROR]: %s in %s:%d', $throwable->getMessage(), $throwable->getFile(), $throwable->getLine() ) ); } } /** * Sets the required capability to view and use the cache purging options. * * @return bool */ public function is_cdn_enabled(): bool { return '' !== $this->cdn_cacheid; } }