gc_cache
Usage
add_action( 'gc_cache', 'wp_kama_gc_cache_action', 10, 2 );
/**
* Function for `gc_cache` action-hook.
*
* @param $string
* @param $permalink
*
* @return void
*/
function wp_kama_gc_cache_action( $string, $permalink ){
// action...
}
- $string
- -
- $permalink
- -
Where the hook is called
gc_cache
wp-super-cache/wp-cache-phase2.php 3262
do_action( 'gc_cache', 'prune', $permalink );
wp-super-cache/wp-cache-phase2.php 3267
do_action( 'gc_cache', 'prune', 'page/' );
wp-super-cache/wp-cache-phase2.php 3271
do_action( 'gc_cache', 'prune', $permalink );
wp-super-cache/wp-cache-phase2.php 3346
do_action( 'gc_cache', 'prune', 'homepage' );
wp-super-cache/wp-cache-phase2.php 3359
do_action( 'gc_cache', 'prune', $permalink );
wp-super-cache/wp-cache-phase2.php 3395
do_action( 'gc_cache', 'rebuild', $permalink );
wp-super-cache/wp-cache-phase2.php 3405
do_action( 'gc_cache', 'rebuild', trailingslashit( $meta['uri'] ) );
Where the hook is used in WP Super Cache
wp-super-cache/plugins/domain-mapping.php 57
add_action( 'gc_cache', 'domain_mapping_gc_cache', 10, 2 );
wp-super-cache/wp-cache.php 4324
add_action( 'gc_cache', 'wpsc_feed_update', 10, 2 );