Title: wp_cache_set_sites_last_changed
Published: February 22, 2019
Last modified: February 24, 2026

---

# wp_cache_set_sites_last_changed()

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/wp_cache_set_sites_last_changed/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_cache_set_sites_last_changed/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_cache_set_sites_last_changed/?output_format=md#changelog)

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

Sets the last changed time for the ‘sites’ cache group.

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

    ```php
    function wp_cache_set_sites_last_changed() {
    	wp_cache_set_last_changed( 'sites' );
    }
    ```

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

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

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

Sets last changed date for the specified cache group to now.

  |

| Used by | Description | 
| [populate_site_meta()](https://developer.wordpress.org/reference/functions/populate_site_meta/)`wp-admin/includes/schema.php` |

Creates WordPress site meta and sets the default values.

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

Creates a site.

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

Clean the blog cache

  |

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

| Version | Description | 
| [5.1.0](https://developer.wordpress.org/reference/since/5.1.0/) | Introduced. |

## User Contributed Notes

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