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

> Menghapus entri registry Instance cache yang di-cache untuk Instance yang diberikan.

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

  ## Argumen

  <ParamField path={"instance"} type={"Instance"} required>
    Instance yang entri cache-nya harus dihapus.
  </ParamField>

  ## Contoh

  Hapus sebuah Instance dari cache Real dan periksa apakah entri cache masih ada.

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

  cache.invalidate(Players)

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