update_page_cache()
Deprecated since 3.4.0. It is no longer supported and may be removed in future releases. Use update_post_cache() instead.
Alias of update_post_cache().
No Hooks.
Returns
null. Nothing (null).
Usage
update_page_cache( $pages );
- $pages(array) (required) (passed by reference — &)
- list of page objects.
Notes
- See: update_post_cache() Posts and pages are the same, alias is intentional
- See: update_post_cache()
Changelog
| Since 1.5.1 | Introduced. |
| Deprecated since 3.4.0 | Use update_post_cache() |
update_page_cache() update page cache code WP 6.8.3
function update_page_cache( &$pages ) {
_deprecated_function( __FUNCTION__, '3.4.0', 'update_post_cache()' );
update_post_cache( $pages );
}