PATH:
home
/
sparklp6
/
public_html
/
website_356c8563
/
nitropack
/
classes
/
Integration
/
Hosting
<?php namespace NitroPack\Integration\Hosting; class GoDaddyWPaaS extends Hosting { const STAGE = "early"; public static function detect() { return class_exists('\WPaaS\Plugin'); } public function init($stage) { if ($this->getHosting() == "godaddy_wpaas") { add_action('nitropack_execute_purge_url', [$this, 'purgeUrl']); add_action('nitropack_execute_purge_all', [$this, 'purgeAll']); } } public function purgeUrl($url) { if (class_exists('\WPaaS\Plugin')) { update_option( 'gd_system_last_cache_flush', time() ); $hosts = [\WPaaS\Plugin::vip()]; $url = preg_replace("/^https:\/\//", "http://", $url); $purger = new \NitroPack\SDK\Integrations\Varnish($hosts, 'BAN'); $purger->purge($url); return true; } return false; } public function purgeAll() { $siteConfig = nitropack_get_site_config(); if ($siteConfig && !empty($siteConfig["home_url"])) { return $this->purgeUrl($siteConfig["home_url"]); } return false; } }
[-] Closte.php
[edit]
[-] Savvii.php
[edit]
[-] Pantheon.php
[edit]
[-] .htaccess
[edit]
[-] Pagely.php
[edit]
[-] WPEngine.php
[edit]
[-] Hosting.php
[edit]
[-] Kinsta.php
[edit]
[-] RocketNet.php
[edit]
[-] Flywheel.php
[edit]
[-] SiteGround.php
[edit]
[-] Cloudways.php
[edit]
[-] SpinupWp.php
[edit]
[-] DreamHost.php
[edit]
[-] Vimexx.php
[edit]
[-] GridPane.php
[edit]
[-] GoDaddyWPaaS.php
[edit]
[-] WPX.php
[edit]
[-] WPmudev.php
[edit]
[-] PagelyCachePurge.php
[edit]
[-] Raidboxes.php
[edit]
[+]
..
[-] Pressable.php
[edit]