If the number of items, for example, equal to 5000 then size calculation lasts not so long and we don't need the cache.
If the number of items in a folder is more than a predetermined value, then for a folder we will have cached size that can be updated (if in doubt) by pressing Shift+F5
------
Added
In other words, we now have the opportunity to set the option "Always show folder sizes" and make exceptions for "Dangerous folders" in the form of tweaks:
ShowFolderSizesExclude=
CacheFolderSizesExclude=
If the cache of folder sizes will be tied to the number of items in the folder, then we will have auto-tweak "CacheFolderSizesExclude="
And in this case I don't need to use the option 'Folder View Settings' for this.
XYplorer Beta Club