_validate_cache_id
_validate_cache_id ( $object_id )
Parameters:- (mixed) object_id The cache ID to validate.
Returns:- (bool) Whether the given $object_id is a valid cache ID.
Defined at: - Introduced in WordPress: 6.3.0
- Deprecated in WordPress: —
Description
Checks whether the given cache ID is either an integer or an integer-like string.Both `16` and `"16"` are considered valid, other numeric types and numeric strings
(`16.3` and `"16.3"`) are considered invalid.