PATH:
home
/
sparklp6
/
public_html
/
website_356c8563
/
nitropack
/
classes
/
Integration
/
Plugin
<?php namespace NitroPack\Integration\Plugin; class CF_Helper extends \CF\WordPress\Hooks { public function isApoEnabled() { if (method_exists($this, "isAutomaticPlatformOptimizationEnabled")) { return $this->isAutomaticPlatformOptimizationEnabled(); } else { return false; } } public function isApoCacheByDeviceTypeEnabled() { if (method_exists($this, "isAutomaticPlatformOptimizationCacheByDeviceTypeEnabled")) { return $this->isAutomaticPlatformOptimizationCacheByDeviceTypeEnabled(); } else { return false; } } public function purgeUrl($url) { $wpDomainList = $this->integrationAPI->getDomainList(); if (!count($wpDomainList)) { return; } $wpDomain = $wpDomainList[0]; $urls = [$url]; $zoneTag = $this->api->getZoneTag($wpDomain); if (isset($zoneTag) && !empty($urls)) { $chunks = array_chunk($urls, 30); foreach ($chunks as $chunk) { $this->api->zonePurgeFiles($zoneTag, $chunk); } } } }
[-] ShortPixel.php
[edit]
[-] YoastSEO.php
[edit]
[-] DownloadManager.php
[edit]
[-] .htaccess
[edit]
[-] WPCacheHelper.php
[edit]
[-] BeaverBuilder.php
[edit]
[-] ThriveTheme.php
[edit]
[-] Ezoic.php
[edit]
[-] MPG.php
[edit]
[-] WPRocket.php
[edit]
[-] JetPackNP.php
[edit]
[-] WooCommerce.php
[edit]
[-] WoocommerceCacheHandler.php
[edit]
[-] WPML.php
[edit]
[-] TheEventsCalendar.php
[edit]
[-] AdvancedMathCaptcha.php
[edit]
[-] CookieNotice.php
[edit]
[-] FusionBuilder.php
[edit]
[-] WCML.php
[edit]
[-] NginxHelper.php
[edit]
[-] SquirrlySEO.php
[edit]
[-] CURCY_MultiCurrency.php
[edit]
[-] Elementor.php
[edit]
[-] GeoTargetingWP.php
[edit]
[-] GravityForms.php
[edit]
[-] ACF.php
[edit]
[-] Cloudflare.php
[edit]
[-] RankMathNP.php
[edit]
[-] RC.php
[edit]
[-] WPBakeryNP.php
[edit]
[-] AeliaCurrencySwitcher.php
[edit]
[-] CommonHelpers.php
[edit]
[-] WPForms.php
[edit]
[+]
..
[-] CF_Helper.php
[edit]