gc_cache action-hookWPSCache 1.0

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

wp_cache_post_id_gc()
gc_cache
wp_cache_post_change()
gc_cache
wp-super-cache/wp-cache-phase2.php 3237
do_action( 'gc_cache', 'prune', $permalink );
wp-super-cache/wp-cache-phase2.php 3242
do_action( 'gc_cache', 'prune', 'page/' );
wp-super-cache/wp-cache-phase2.php 3246
do_action( 'gc_cache', 'prune', $permalink );
wp-super-cache/wp-cache-phase2.php 3321
do_action( 'gc_cache', 'prune', 'homepage' );
wp-super-cache/wp-cache-phase2.php 3334
do_action( 'gc_cache', 'prune', $permalink );
wp-super-cache/wp-cache-phase2.php 3370
do_action( 'gc_cache', 'rebuild', $permalink );
wp-super-cache/wp-cache-phase2.php 3380
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 4224
add_action( 'gc_cache', 'wpsc_feed_update', 10, 2 );