Commit inicial powerservice
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* Call the cache server to purge the cache with Pagely hosting.
|
||||
*
|
||||
* @since 2.5.7
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function rocket_clean_pagely() {
|
||||
if ( class_exists( 'PagelyCachePurge' ) ) {
|
||||
$purger = new PagelyCachePurge();
|
||||
$purger->purgeAll();
|
||||
}
|
||||
}
|
||||
add_action( 'after_rocket_clean_domain', 'rocket_clean_pagely' );
|
||||
Reference in New Issue
Block a user