Warning: This function has been deprecated. Use update_post_cache() instead.
update_page_cache() WordPress Function
The update_page_cache() function is used to update the cache for a given page. It is typically called after a page has been updated or created.
update_page_cache( array $pages ) #
Alias of update_post_cache().
Description
See also
- update_post_cache(): Posts and pages are the same, alias is intentional
- update_post_cache()
Parameters
- $pages
(array)(Required)list of page objects
Source
File: wp-includes/deprecated.php
function update_page_cache( &$pages ) { _deprecated_function( __FUNCTION__, '3.4.0', 'update_post_cache()' ); update_post_cache( $pages ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Use update_post_cache() |
1.5.1 | Introduced. |