Definition:
function clean_page_cache($id) {}
Will clean the page in the cache.
Clean (read: delete) page from cache that matches $id. Will also clean cache associated with ‘all_page_ids’ and ‘get_pages’.
Parameters
- int $id: Page ID to clean
Defined actions
- clean_page_cache
do_action('clean_page_cache', $id);
Source code
function clean_page_cache($id) {
clean_post_cache($id);
wp_cache_delete( 'all_page_ids', 'posts' );
wp_cache_delete( 'get_pages', 'posts' );
do_action('clean_page_cache', $id);
}
625

February 11, 2011 


No comments yet... Be the first to leave a reply!