> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# cache.invalidate

> Removes the cached Instance entry for the given Instance.

<div className="real-function-page">
  ```lua theme={null}
  cache.invalidate(instance: Instance)
  ```

  ## Arguments

  <ParamField path={"instance"} type={"Instance"} required>
    Instance whose cache entry should be removed.
  </ParamField>

  ## Example

  Remove an Instance from Real's cache and check whether the cache entry is still present.

  ```lua theme={null}
  local Players = game:GetService("Players")

  cache.invalidate(Players)

  print(cache.iscached(Players))
  ```
</div>
