# FSBank Cache Questions

**URL:** <https://qa.fmod.com/t/fsbank-cache-questions/20767>\
**Category:** FMOD Engine\
**Created:** [October 13, 2023, 4:39pm UTC](https://qa.fmod.com/t/fsbank-cache-questions/20767 "2023-10-13T16:39:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aishi1](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@aishi1](https://qa.fmod.com/u/aishi1)\
**Post date:** [October 13, 2023, 4:39pm UTC](https://qa.fmod.com/t/fsbank-cache-questions/20767/1 "2023-10-13T16:39:29Z")

</div>

Hello, I’m using the fsbank library on a server to convert user-uploaded files to .fsb format.

In this case, would the cache files be needed if the server is usually never building the same files twice? In what way does fsbank use these, and are they safe to delete?

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [October 17, 2023, 5:01am UTC](https://qa.fmod.com/t/fsbank-cache-questions/20767/2 "2023-10-17T05:01:16Z")

</div>

The generated cache files are intermediate encodings of your source assets, so they’re fine to delete, but doing so will mean that a given source asset will need to be re-encoded if you want to build an .fsb containing it again. If you’re usually not encoding the same files twice, then it’s likely that this won’t impact you often.

---

<div class="post-metadata">

**Author:** ![aishi1](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@aishi1](https://qa.fmod.com/u/aishi1)\
**Post date:** [October 22, 2023, 8:00am UTC](https://qa.fmod.com/t/fsbank-cache-questions/20767/3 "2023-10-22T08:00:49Z")

</div>

Thank you for answering my question. As a quick follow-up, is there any option to prevent the creation of cache files on build? This might be helpful. Otherwise, I can manually clean them up afterward.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [October 24, 2023, 3:05am UTC](https://qa.fmod.com/t/fsbank-cache-questions/20767/4 "2023-10-24T03:05:56Z")

</div>

Unfortunately, there’s no option to stop the cache files from being generated - however, it does seem useful, so I’ve noted this feature on our internal feature/improvement tracker.

To assist in manually cleaning them up yourself, you can specify the directory the cache files are written to with the `cacheDirectory` argument of [`FSBank_init`](https://www.fmod.com/docs/2.02/api/fsbank-api.html#fsbank_init).

---

<div class="post-metadata">

**Author:** ![aishi1](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@aishi1](https://qa.fmod.com/u/aishi1)\
**Post date:** [October 24, 2023, 3:30am UTC](https://qa.fmod.com/t/fsbank-cache-questions/20767/5 "2023-10-24T03:30:28Z")

</div>

I appreciate the confirmation - it’s not a critical issue at all, but thank you for adding it to the feature tracker.
