Title: wp_cache_set_users_last_changed
Published: August 8, 2023
Last modified: February 24, 2026

---

# wp_cache_set_users_last_changed()

## In this article

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

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

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

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

    ```php
    function wp_cache_set_users_last_changed() {
    	wp_cache_set_last_changed( 'users' );
    }
    ```

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

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_cache_set_users_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 | 
| [clean_user_cache()](https://developer.wordpress.org/reference/functions/clean_user_cache/)`wp-includes/user.php` |

Cleans all user caches.

  |

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

| Version | Description | 
| [6.3.0](https://developer.wordpress.org/reference/since/6.3.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_users_last_changed%2F)
before being able to contribute a note or feedback.