gc_cache
gc_cache
Appears in: wp-super-cache.1.10.0, wp-super-cache.1.11.0, wp-super-cache.1.12.0, wp-super-cache.1.12.1, wp-super-cache.1.12.3, wp-super-cache.1.12.4, wp-super-cache.1.6.2, wp-super-cache.1.6.4, wp-super-cache.1.6.5, wp-super-cache.1.6.7, wp-super-cache.1.6.8, wp-super-cache.1.6.9, wp-super-cache.1.7.0, wp-super-cache.1.7.1, wp-super-cache.1.7.2, wp-super-cache.1.7.3, wp-super-cache.1.7.4, wp-super-cache.1.7.7, wp-super-cache.1.7.9, wp-super-cache.1.8, wp-super-cache.1.9, wp-super-cache.1.9.1, wp-super-cache.1.9.2, wp-super-cache.1.9.3, wp-super-cache.1.9.4, wp-super-cache.2.0.0
Hook Type: action
See hook in action
Displaying hooks found in version: wp-super-cache.2.0.0do_action('gc_cache') is found 7 times:
- /wp-cache-phase2.php line 326832643265326632673268326932703271327232733274
$dir
= get_current_url_supercache_dir(
$post_id
);
wp_cache_debug(
"wp_cache_post_id_gc post_id: $post_id "
. get_permalink(
$post_id
) .
" clearing cache in $dir."
, 4 );
if
(
$all
) {
prune_super_cache(
$dir
, true, true );
do_action(
'gc_cache'
,
'prune'
,
$permalink
);
@
rmdir
(
$dir
);
$supercache_home
= get_supercache_dir();
wp_cache_debug(
"wp_cache_post_id_gc clearing cache in {$supercache_home}page/."
);
prune_super_cache(
$supercache_home
.
'page/'
, true );
do_action(
'gc_cache'
,
'prune'
,
'page/'
);
}
else
{
- /wp-cache-phase2.php line 327332693270327132723273327432753276327732783279
@
rmdir
(
$dir
);
$supercache_home
= get_supercache_dir();
wp_cache_debug(
"wp_cache_post_id_gc clearing cache in {$supercache_home}page/."
);
prune_super_cache(
$supercache_home
.
'page/'
, true );
do_action(
'gc_cache'
,
'prune'
,
'page/'
);
}
else
{
wp_cache_debug(
"wp_cache_post_id_gc clearing cached index files in $dir."
, 4 );
prune_super_cache(
$dir
, true, true );
do_action(
'gc_cache'
,
'prune'
,
$permalink
);
}
return
true;
- /wp-cache-phase2.php line 327732733274327532763277327832793280328132823283
do_action(
'gc_cache'
,
'prune'
,
'page/'
);
}
else
{
wp_cache_debug(
"wp_cache_post_id_gc clearing cached index files in $dir."
, 4 );
prune_super_cache(
$dir
, true, true );
do_action(
'gc_cache'
,
'prune'
,
$permalink
);
}
return
true;
}
function
wp_cache_post_change(
$post_id
) {
global
$file_prefix
,
$cache_path
,
$blog_id
,
$super_cache_enabled
,
$blog_cache_dir
,
$wp_cache_refresh_single_only
;
- /wp-cache-phase2.php line 335233483349335033513352335333543355335633573358
}
if
(
$all
== true ) {
wp_cache_debug(
'Post change: supercache enabled: deleting cache files in '
.
$dir
);
wpsc_rebuild_files(
$dir
);
do_action(
'gc_cache'
,
'prune'
,
'homepage'
);
if
( get_option(
'show_on_front'
) ==
'page'
) {
wp_cache_debug(
'Post change: deleting page_on_front and page_for_posts pages.'
, 4 );
wp_cache_debug(
'Post change: page_on_front '
. get_option(
'page_on_front'
), 4 );
/**
* It's possible that page_for_posts is zero.
* Quick fix to reduce issues in debugging.
- /wp-cache-phase2.php line 33653361336233633364336533663367336833693370
if
( get_option(
'page_for_posts'
) ) {
$permalink
= trailingslashit(
str_replace
( get_option(
'home'
),
''
, get_permalink( get_option(
'page_for_posts'
) ) ) );
wp_cache_debug(
'Post change: Deleting files in: '
.
str_replace
(
'//'
,
'/'
,
$dir
.
$permalink
) );
wpsc_rebuild_files(
$dir
.
$permalink
);
do_action(
'gc_cache'
,
'prune'
,
$permalink
);
}
}
}
else
{
wp_cache_debug(
'wp_cache_post_change: not deleting all pages.'
, 4 );
}
- /wp-cache-phase2.php line 340133973398339934003401340234033404340534063407
if
( false ==
$supercache_files_deleted
&&
$super_cache_enabled
== true ) {
wp_cache_debug(
"Post change: deleting supercache files for {$permalink}"
);
wpsc_rebuild_files(
$dir
.
$permalink
);
$supercache_files_deleted
= true;
do_action(
'gc_cache'
,
'rebuild'
,
$permalink
);
}
}
}
elseif
(
$meta
[
'blog_id'
] ==
$blog_id
) {
wp_cache_debug(
"Post change: deleting wp-cache files for {$meta[ 'uri' ]}: $file"
, 4 );
@unlink(
$blog_cache_dir
.
'meta/'
.
$file
);
@unlink(
$blog_cache_dir
.
$file
);
- /wp-cache-phase2.php line 341134073408340934103411341234133414341534163417
@unlink(
$blog_cache_dir
.
$file
);
if
(
$super_cache_enabled
== true ) {
wp_cache_debug(
"Post change: deleting supercache files for {$meta[ 'uri' ]}"
);
wpsc_rebuild_files(
$dir
.
$meta
[
'uri'
] );
do_action(
'gc_cache'
,
'rebuild'
, trailingslashit(
$meta
[
'uri'
] ) );
}
}
}
}
}
closedir
(
$handle
);