    

 ## On this page

  

 

 # enableCache

 Last update: 16.07.2025 

public [enableCache](enable-cache.md)(enable: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)

Enables or disables cache completely. Cache is cleared when disabled and cannot be reused when enabled again.

#### Return

were we previously reading from the cache?

#### Parameters

enableindicates if cache should be enabled or disabled#### Throws

[ModelCenterException](../-model-center-exception/index.md)