wp_cache_cleared
wp_cache_cleared
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
Displaying hooks found in version: wp-super-cache.2.0.0do_action('wp_cache_cleared') is found 4 times:
- /wp-cache-phase2.php line 26312627262826292630263126322633263426352636
}
}
}
closedir
(
$handle
);
do_action(
'wp_cache_cleared'
);
}
wp_cache_writers_exit();
}
function
prune_super_cache(
$directory
,
$force
= false,
$rename
= false ) {
- /wp-cache-phase2.php line 309030863087308830893090309130923093309430953096
prune_super_cache( get_supercache_dir(
$blog_id
), true );
prune_super_cache(
$cache_path
.
'blogs/'
, true );
}
do_action(
'wp_cache_cleared'
);
}
function
wpsc_delete_post_archives(
$post
) {
$post
= @get_post(
$post
);
if
( !
is_object
(
$post
) ) {
return
;
- /wp-cache-phase2.php line 324332393240324132423243324432453246324732483249
wp_cache_debug(
"wp_cache_post_edit: Clearing cache $blog_cache_dir and {$cache_path}supercache/ on post edit per config."
, 2 );
prune_super_cache(
$blog_cache_dir
, true );
prune_super_cache( get_supercache_dir(), true );
do_action(
'wp_cache_cleared'
);
}
else
{
$action
= current_filter();
wp_cache_debug(
"wp_cache_post_edit: Clearing cache for post $post_id on {$action}"
, 2 );
wp_cache_post_change(
$post_id
);
wpsc_delete_post_archives(
$post_id
);
// delete related archive pages.
}
- /wp-cache.php line 27812778277927802781278227832784278527862787
function
wp_cache_clean_cache(
$file_prefix
,
$all
= false ) {
global
$cache_path
,
$supercachedir
,
$blog_cache_dir
;
do_action(
'wp_cache_cleared'
);
if
(
$all
== true && wpsupercache_site_admin() && function_exists(
'prune_super_cache'
) ) {
prune_super_cache(
$cache_path
, true );
return
true;
}
if
(
$supercachedir
==
''
)