Advertisements

clean_page_cache

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

Advertisements

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:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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: