# UseCachedIfPossible

> This option sets the status query to first use the latest valid version control system status of the file and query for a valid status synchronously if otherwise.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
UseCachedIfPossible = 1
```

### Remarks

A synchronous query does not return a value until the VCS system responds. This can cause significant delays especially when the VCS is server controlled. It is better to use [StatusQueryOptions.UseCachedAsync](/engine/6000.0/script-reference/unityeditor/statusqueryoptions/usecachedasync.md) for an asynchronous query in that situation.

Additional Resources: [AssetDatabase.IsOpenForEdit](/engine/6000.0/script-reference/unityeditor/assetdatabase/isopenforedit.md), [AssetDatabase.IsMetaFileOpenForEdit](/engine/6000.0/script-reference/unityeditor/assetdatabase/ismetafileopenforedit.md).
