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’.


  • int $id: Page ID to clean

Defined actions

  • clean_page_cache
    do_action('clean_page_cache', $id);

Source code

function clean_page_cache($id) {


	wp_cache_delete( 'all_page_ids', 'posts' );

	wp_cache_delete( 'get_pages', 'posts' );

	do_action('clean_page_cache', $id);



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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: