Folder Size stays stored in cache after the folder is empty

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
n2k
Posts: 17
Joined: 20 Mar 2014 10:39

Folder Size stays stored in cache after the folder is empty

Post by n2k »

Hey,

I'm experiencing the following behavior when Folder Size Caching is on:
1. Create a new folder somewhere on disk, then navigate to it
2. Create a new text file, and type something in it (as long as its bigger than 0 bytes), then save it
3. Navigate one level up to where the created folder resides so that the Folder Size is calculated for it (optionally press Shift+F5 [Calculate Folder Sizes])
4. Navigate into the created folder and delete the text file
5. Navigate one level up, the Folder Size of the created folder still has the cached value, press Shift+F5 to recalculate, the Folder Size Column now shows the folder is empty.
6. Navigate to the created folder again (or any other folder for that matter)
7. Navigate back to the folder to where the created folder resides, the Folder Size Column still shows the previously cached size :eh:

This can be worked around by right-clicking on the Folder Size Column and click Clear Folder Size Cache, and recalculating all Folder Sizes again.
Although when the folder has files in it that are larger than 0 bytes, and the Folder Size is recalculated the bug will happen again.
This behavior is true for networked locations as well, if they're cached.

And if I may request a feature for Folder Size Caching: I would like it when navigating to a folder and the contents are below a certain size threshold (like smaller like 1 GB, should be configurable) and/or a certain file count (like fewer than 1000 files, should be configurable) the cache for that folder and sub-folders (aka recursive) should automatically update.

I'm using XYplorer v16.90.0300 on Windows 7 x64 SP1.

Thank your for making XYplorer, and thank your for the Folder Size Caching feature.

highend
Posts: 14594
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Folder Size stays stored in cache after the folder is em

Post by highend »

I'm experiencing the following behavior when Folder Size Caching is on:
1. Create a new folder somewhere on disk, then navigate to it
2. Create a new text file, and type something in it (as long as its bigger than 0 bytes), then save it
3. Navigate one level up to where the created folder resides so that the Folder Size is calculated for it (optionally press Shift+F5 [Calculate Folder Sizes])
4. Navigate into the created folder and delete the text file
5. Navigate one level up, the Folder Size of the created folder still has the cached value, press Shift+F5 to recalculate, the Folder Size Column now shows the folder is empty.
6. Navigate to the created folder again (or any other folder for that matter)
7. Navigate back to the folder to where the created folder resides, the Folder Size Column still shows the previously cached size
Can confirm this behavior on a fresh instance
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Folder Size stays stored in cache after the folder is em

Post by admin »

Yep, fix comes, thanks! :tup:

Conc. your wish, please post in the Wishes section. Makes it easier to maintain.

Post Reply