Cache
cache.invalidate
Removes the cached Instance entry for the given Instance.
cache.invalidate(instance: Instance)
Arguments
instanceInstancerequired
Instance whose cache entry should be removed.
Example
Remove an Instance from Real's cache and check whether the cache entry is still present.
Luau
local Players = game:GetService("Players")
cache.invalidate(Players)
print(cache.iscached(Players))