# Clear-cache effect?

**URL:** <https://forum.crystal-lang.org/t/clear-cache-effect/9028>\
**Category:** Help & Support\
**Created:** [June 25, 2026, 3:28pm UTC](https://forum.crystal-lang.org/t/clear-cache-effect/9028 "2026-06-25T15:28:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hutou](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/hutou/32/1337_2.png) [@hutou](https://forum.crystal-lang.org/u/hutou)\
**Post date:** [June 25, 2026, 3:28pm UTC](https://forum.crystal-lang.org/t/clear-cache-effect/9028/1 "2026-06-25T15:28:48Z")

</div>

Can the ‘crystal clear\_cache’ command have a (very) significant impact on the size of the executable (and the compile time)?

---

<div class="post-metadata">

**Author:** ![straight-shoota](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/straight-shoota/32/36_2.png) [@straight-shoota](https://forum.crystal-lang.org/u/straight-shoota)\
**Post date:** [June 25, 2026, 4:34pm UTC](https://forum.crystal-lang.org/t/clear-cache-effect/9028/2 "2026-06-25T16:34:42Z")

</div>

Compile time, yes. When a cache exists, the compiler might be able to re-use previously compiled byte code. That might be noticable when building the same (or a very similar) program multiple times. But the effect is limited.

Executable size should definitely not be affected by the existence of a cache. If it is, something is going wrong.
