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

> Удаляет кэшированную запись registry Instance cache для указанной Instance.

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

  ## Аргументы

  <ParamField path={"instance"} type={"Instance"} required>
    Instance, для которой нужно удалить кэшированную запись registry.
  </ParamField>

  ## Пример

  Удалите Instance из cache Real и проверьте, осталась ли запись cache.

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

  cache.invalidate(Players)

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