# Are Cached Types a Known Issue?

**URL:** <https://forum.dfinity.org/t/are-cached-types-a-known-issue/24315>\
**Category:** JavaScript\
**Created:** [November 1, 2023, 5:39am UTC](https://forum.dfinity.org/t/are-cached-types-a-known-issue/24315 "2023-11-01T05:39:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![princess\_eth](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@princess\_eth](https://forum.dfinity.org/u/princess_eth)\
**Post date:** [November 1, 2023, 5:39am UTC](https://forum.dfinity.org/t/are-cached-types-a-known-issue/24315/1 "2023-11-01T05:39:32Z")

</div>

I am writing a backend canister smart contract in Typescript using Azle. I recently ran into an issue where I updated the type of a parameter that I passed into a function, generated new service files, deployed, and upon running the function on my Candid UI, I was getting an error that I was still using the previous type. Similar to this:

`Candid decode error: “type mismatch: type on int32 but expected int8`

I attempted to resolve this error by deleting .azle and .dfx but to no avail.

In order to resolve this error, I had to create completely new canisters.

Is this a known issue? Perhaps the canister is saving a cache somewhere?

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [November 1, 2023, 8:14am UTC](https://forum.dfinity.org/t/are-cached-types-a-known-issue/24315/2 "2023-11-01T08:14:58Z")

</div>

Canisters don’t cache anything. It has to be a problem with the build setup or something along these lines. The only caching problem outside of the build process that I can imagine is that you may not have refreshed the Candid UI

---

<div class="post-metadata">

**Author:** ![princess\_eth](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@princess\_eth](https://forum.dfinity.org/u/princess_eth)\
**Post date:** [November 4, 2023, 4:18pm UTC](https://forum.dfinity.org/t/are-cached-types-a-known-issue/24315/3 "2023-11-04T16:18:45Z")

</div>

Thank you for letting me know! I’ll take a look if I can replicate again. What is the best way to refresh the Candid UI? Would I refresh the webpage?

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [November 6, 2023, 10:13am UTC](https://forum.dfinity.org/t/are-cached-types-a-known-issue/24315/4 "2023-11-06T10:13:35Z")

</div>

I don’t know much about the UI, but Shift+Refresh should certainly do the trick
