AeliaCurrencySwitcher.php
4 years ago
BeaverBuilder.php
4 years ago
CF_Helper.php
4 years ago
Cloudflare.php
4 years ago
CookieNotice.php
4 years ago
DownloadManager.php
4 years ago
Ezoic.php
4 years ago
FusionBuilder.php
4 years ago
NginxHelper.php
4 years ago
RC.php
4 years ago
RocketNet_Helper.php
4 years ago
ShortPixel.php
4 years ago
ThriveTheme.php
4 years ago
WPCacheHelper.php
4 years ago
WPRocket.php
4 years ago
Woocommerce.php
4 years ago
WoocommerceCacheHandler.php
4 years ago
RocketNet_Helper.php
16 lines
| 1 | <?php |
| 2 | |
| 3 | namespace NitroPack\Integration\Plugin; |
| 4 | |
| 5 | class RocketNet_Helper extends \Rocket_Wordpress { |
| 6 | public static function purgeUrl($url) { |
| 7 | $urlObj = new \NitroPack\Url($url); |
| 8 | $entry = $urlObj->getPath(); |
| 9 | if ($urlObj->getQuery()) { |
| 10 | $entry .= "?" . $urlObj->getQuery(); |
| 11 | } |
| 12 | self::cache_api_call([$entry], "purge"); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 |