> ## 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

> Xoa muc registry Instance cache da duoc cache cho Instance duoc cung cap.

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

  ## Đối số

  <ParamField path={"instance"} type={"Instance"} required>
    Instance co muc registry da cache can duoc xoa.
  </ParamField>

  ## Ví dụ

  Xoa mot Instance khoi cache cua Real va kiem tra xem muc cache con ton tai hay khong.

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

  cache.invalidate(Players)

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