Title: clean_page_cache
Published: April 25, 2014
Last modified: April 28, 2025

---

# clean_page_cache( int $id )

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#wp--skip-link--target)

This function has been deprecated since 3.4.0. Use [clean_post_cache()](https://developer.wordpress.org/reference/functions/clean_post_cache/)
instead.

Will clean the page in the cache.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#description)󠁿

Clean (read: delete) page from cache that matches $id. Will also clean cache associated
with ‘all_page_ids’ and ‘get_pages’.

### 󠀁[See also](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#see-also)󠁿

 * [clean_post_cache()](https://developer.wordpress.org/reference/functions/clean_post_cache/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#parameters)󠁿

 `$id`intrequired

Page ID to clean

## 󠀁[Source](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#source)󠁿

    ```php
    function clean_page_cache( $id ) {
    	_deprecated_function( __FUNCTION__, '3.4.0', 'clean_post_cache()' );

    	clean_post_cache( $id );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/deprecated.php#L3132)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/deprecated.php#L3132-L3136)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#related)󠁿

| Uses | Description | 
| [clean_post_cache()](https://developer.wordpress.org/reference/functions/clean_post_cache/)`wp-includes/post.php` |

Will clean the post in the cache.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/clean_page_cache/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Deprecated. Use clean_post_cache | 
| [2.0.0](https://developer.wordpress.org/reference/since/2.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fclean_page_cache%2F)
before being able to contribute a note or feedback.