Are decimals not supported when configuring cache sizes? I recently noticed that setting a cache size to 1.6MB resulted in the cache size being set to 16MB:

Patch Config

Below is the patch config where I set the cache size to 1.6MB: patch config

showconfig.aspx Page

site config

cache.aspx Page

cache.aspx page

1 Answer 1



Commas , and periods . are stripped from the values. You can take a look at Sitecore.StringUtil.ParseSizeString(string) for proof, I've not found this officially documented anywhere.

Valid sizes examples:

  • 12000 (bytes)
  • 500KB (kilobytes)
  • 25MB (megabytes)
  • 2GB (gigabytes)

If you want 1.6MB, you're going to have to go with 1600KB.

More info: https://www.sitecorespark.com/blog/2018/8/why-sitecore-cache-sizes-are-listed-in-kb-mb-gb-in-configuration

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.