Recycle Bin could use a pre-cashing feature

Suggestions and feature requests.
Post Reply
Message
Author
User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Recycle Bin could use a pre-cashing feature

#1 Post by Forez » 04.11.2024, 13:39

Almost every time I go to to the overall Recycle Bin system folder FreeCommander freezes significantly. And that is because most of the time I have thousands of deleted items that amount to dozens if not hundreds of GBs. But if I will navigate to a Recycle Bin folder like e.g.

C:\$RECYCLE.BIN\S-1-5-21-3797103458-798797042-3558267449-1001

then even if it holds 99% of deleted items from all of my volumes then they are shown immediately - although as unrecognizable gibberish like for example folder $R1W8WMB or file $ITKY0PH.JPG

And when I use the Recycle Bin icon from the Desktop and thus enter it using Windows Explorer I also get a progress bar for a few seconds - thus I am guessing this is a system depended thing

So would it be possible for FreeCommander to monitor / cache all those Recycle Bin folders so that it could provide user with content of the overall Recycle Bin folder at a moments notice whenever user evokes it - just like when navigating through ordinary folders using FC? I reckon this should be an optional feature because it would either eat RAM resources or would have to relay on some sort of constantly updated database


This slow access to deleted content has been happening to me for the longest time, probably since forever

I am using FreeCommander Build 912 64-bit Donor Portable and Build 901 32-bit Public Installed on Windows 10 Enterprise 20H2 x64 [10.0.19042]

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Recycle Bin could use a pre-cashing feature

#2 Post by Forez » 18.03.2026, 22:14

This issue is still relevant in Build 946 64-bit Donor Portable and Build 941 32-bit Public Installed on Windows 10 IOT Enterprise LTSC 21H2 x64 (19044.6691)

Can I have an answer then to my workaround of FC somehow caching the overall Recycle Bin?

Marek
Author
Author
Posts: 4366
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Recycle Bin could use a pre-cashing feature

#3 Post by Marek » 19.03.2026, 19:52

Opening the recycle bin for the first time takes a long time if it contains tens of thousands of files.
Is the time the same if you open the recycle bin second or third time?

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Recycle Bin could use a pre-cashing feature

#4 Post by Forez » 20.03.2026, 09:27

I do not remember it if always have been like this, but surely for years thus through multiple Builds and my various personal settings: re-opening after closure is as slow as initial opening

And even if I will open next to each other 2 Tabs with Recycle Bin in either 1 or both Panels and then close the latest one, access to the surviving Tab still takes the same flow-breaking amount of time

Marek
Author
Author
Posts: 4366
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Recycle Bin could use a pre-cashing feature

#5 Post by Marek » 20.03.2026, 17:47

I have defined a detailed view that allows me to open a $RECYCLE.BIN folder containing more than 20,000 deleted items in under 2 seconds.
Unfortunately the detailed view must be defined directly in the freecommander.ini.
I have defined the detailed view with the name "Recycle.Bin".

In the section [FcDetailedViews] add on the last position the line with Recycle.Bin.

Code: Select all

[FcDetailedViews]
1=xxxx
2=xxxx
3=xxxx
4=xxxx
.....
n=Recycle.Bin
Copy and paste the whole section below after the last line in the section [FcDetailedViews].

Code: Select all

[FcDetailedViews_Recycle.Bin]
LoadShellTitle=1
Condition=<sub>?:\$RECYCLE.BIN\*
ShowExtensionInCaption=1
ItemsCountRecursive=0
SizeCountRecursive=1
LastSorting=0,0,-1,0
AutoSizeNameColumn=0
1col_Name=Name
1col_Format=
1col_Align=0
1col_Width=20
1col_Sort=0
1col_ContentType=0
1col_ShellContentType=0
1col_RefValue=
1col_Content=0
1col_LvIndex=0
2col_Name=File name
2col_Format=
2col_Align=0
2col_Width=28
2col_Sort=0
2col_ContentType=1
2col_ShellContentType=0
2col_RefValue=
2col_Content=167
2col_LvIndex=1
3col_Name=Origin
3col_Format=
3col_Align=0
3col_Width=44
3col_Sort=0
3col_ContentType=1
3col_ShellContentType=0
3col_RefValue=
3col_Content=1
3col_LvIndex=2
4col_Name=Deleted on
4col_Format=
4col_Align=0
4col_Width=20
4col_Sort=0
4col_ContentType=1
4col_ShellContentType=2
4col_RefValue=
4col_Content=2
4col_LvIndex=3
5col_Name=Size
5col_Format=
5col_Align=1
5col_Width=12
5col_Sort=0
5col_ContentType=0
5col_ShellContentType=1
5col_RefValue=
5col_Content=6
5col_LvIndex=4
In the UI under Settings->View->Column profiles: move the added "Recycle.Bin" detailed view at the top.

You need additional an reusable filter with the name e.g. "Recycle.bin $R items".
The definition of the filter need only value for "Include" field: $R*
You can simply use the quick filter too: $R

You can define button in the toolbar for the filter or you can use it for the automatic view.

Now if you open e.g. D:\$RECYCLE.BIN\S-1-5-21-3777255868-3057126717-2516846410-1001 and set the filter "Recycle.bin $R items" the right content is showed.

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Recycle Bin could use a pre-cashing feature

#6 Post by Forez » 21.03.2026, 10:24

Before I indulge in this:

I already have some Detailed Views set-up

Code: Select all

[FcDetailedViews]
1=POGO 2.0.1
2=Recycle Bin
3=This PC
4=MXD 1.0.0
My 2nd block of settings is this

Code: Select all

[FcDetailedViews_Recycle Bin]
LoadShellTitle=1
Condition=<pidl>::{645FF040-5081-101B-9F08-00AA002F954E}
ShowExtensionInCaption=1
ItemsCountRecursive=0
SizeCountRecursive=1
LastSorting=1,0,0,0
AutoSizeNameColumn=0
1col_Name=Name
1col_Format=
1col_Align=0
1col_Width=177
1col_Sort=0
1col_ContentType=1
1col_ShellContentType=0
1col_RefValue=
1col_Content=0
1col_LvIndex=1
2col_Name=Date Deleted
2col_Format=
2col_Align=0
2col_Width=26
2col_Sort=0
2col_ContentType=1
2col_ShellContentType=2
2col_RefValue=
2col_Content=2
2col_LvIndex=0
3col_Name=Original Location
3col_Format=
3col_Align=0
3col_Width=70
3col_Sort=0
3col_ContentType=1
3col_ShellContentType=0
3col_RefValue=
3col_Content=1
3col_LvIndex=2
4col_Name=Size
4col_Format=
4col_Align=1
4col_Width=16
4col_Sort=0
4col_ContentType=1
4col_ShellContentType=1
4col_RefValue=
4col_Content=3
4col_LvIndex=3
5col_Name=Date modified
5col_Format=
5col_Align=0
5col_Width=24
5col_Sort=0
5col_ContentType=1
5col_ShellContentType=2
5col_RefValue=
5col_Content=5
5col_LvIndex=4
And it works like I want it to work (except for slow load up when tens of thousands of items are in it)

So my questions would be:


#1] Why would I be using

Code: Select all

Condition=<pidl>::{645FF040-5081-101B-9F08-00AA002F954E}
i.e. what is this >>645FF040-5081-101B-9F08-00AA002F954E<< coded string?


#2] Why does it have up to

Code: Select all

5col_
entries? Why not just one

Code: Select all

col_
i.e. why there are 5 iterations? I currently have 8 volumes in my system, so if anything I would be expecting this going up to

Code: Select all

8col_

#3] Can implement your solution to this Detailed View of mine i.e. adjust it, so that I would not have to start from scratch?


#4] Is your solution achievable only by mingling with the INI file i.e. there are no sufficient options in the GUI for achieving this caching?
Last edited by Forez on 23.03.2026, 09:41, edited 3 times in total.

Marek
Author
Author
Posts: 4366
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Recycle Bin could use a pre-cashing feature

#7 Post by Marek » 21.03.2026, 11:59

what is this >>645FF040-5081-101B-9F08-00AA002F954E<< coded string?
You can see it in the section title: Recycle bin. It is Windows path for Recycle Bin. Simply paste "::{645FF040-5081-101B-9F08-00AA002F954E}" in the Windows Explorer address bar.
Why does it have up to 5col_ entries? Why not just one
Simply check the detailed view in the UI and you will see. What could be for "col"?
Can implement your solution to this Detailed View of mine i.e. adjust it, so that I would not have to start from scratch?
You do not need start from scratch. You have a ready-made solution. Your detailed views will remain and are unrelated to the new one.
Is your solution achievable only by mingling with the INI file
I already wrote it in my topic.

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Recycle Bin could use a pre-cashing feature

#8 Post by Forez » 23.03.2026, 10:10

Forez wrote: 21.03.2026, 10:24 [...]
#2] Why does it have up to

Code: Select all

5col_
entries?
[...]
Marek wrote: 21.03.2026, 11:59 Simply check the detailed view in the UI and you will see. What could be for "col"?
So those settings that are governing their Columns

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Recycle Bin could use a pre-cashing feature

#9 Post by Forez » 23.03.2026, 11:19

As for your instructions
Marek wrote: 21.03.2026, 11:59 [...]
You do not need start from scratch. You have a ready-made solution
[...]
I simply had trouble understanding them


In my

FreeCommander.ini

main config file I have now

Code: Select all

[FcDetailedViews]
1=Recycle.Bin
2=POGO 2.0.1
3=Recycle Bin
4=This PC
5=MXD 1.0.0
and below this block the next first block now is that yours

Code: Select all

[FcDetailedViews_Recycle.Bin]
LoadShellTitle=1
Condition=<sub>?:\$RECYCLE.BIN\*
ShowExtensionInCaption=1
ItemsCountRecursive=0
SizeCountRecursive=1
LastSorting=0,0,-1,0
AutoSizeNameColumn=0
1col_Name=Name
1col_Format=
1col_Align=0
1col_Width=20
1col_Sort=0
1col_ContentType=0
1col_ShellContentType=0
1col_RefValue=
1col_Content=0
1col_LvIndex=0
2col_Name=File name
2col_Format=
2col_Align=0
2col_Width=28
2col_Sort=0
2col_ContentType=1
2col_ShellContentType=0
2col_RefValue=
2col_Content=167
2col_LvIndex=1
3col_Name=Origin
3col_Format=
3col_Align=0
3col_Width=44
3col_Sort=0
3col_ContentType=1
3col_ShellContentType=0
3col_RefValue=
3col_Content=1
3col_LvIndex=2
4col_Name=Deleted on
4col_Format=
4col_Align=0
4col_Width=20
4col_Sort=0
4col_ContentType=1
4col_ShellContentType=2
4col_RefValue=
4col_Content=2
4col_LvIndex=3
5col_Name=Size Auto
5col_Format=
5col_Align=1
5col_Width=12
5col_Sort=0
5col_ContentType=0
5col_ShellContentType=1
5col_RefValue=
5col_Content=6
5col_LvIndex=4

I also went to

Main Menu > Folder > Filter > Set filter > Reusable filters > Define > General > Add new filter (Ins) [ICON]

and created a new Filter named

Code: Select all

Recycle.bin $R items (cache test)
And then I set-up for it in the

Main Menu > Folder > Filter > Set filter > Reusable filters > Define > General > Include

box that

Code: Select all

$R*
expression and also chosen for it the

Main Menu > Folder > Filter > Set filter > Reusable filters > Define > General > Apply for > Files and Folders

option


But now what I am suppose to do?

Is this now usable by various means? By such 4 methods?:


A] Manually write

Code: Select all

$R
in Quick Filter box, then activate it and then finally go to Recycle Bin folder by whatever means?


If yes, then it does not seem to speed up showing of items in Recycle Bin. Plus I need then to manually turn off the Quick Filter or delete its expression



B] Manually choose the

Main Menu > Folder > Filter > Recycle.bin $R items (cache test)

and go to Recycle Bin folder by whatever means?


If yes, then I have doubts if it works correctly. Because sometimes both Panels automatically switch paths in one or both of my Active Tabs to Recycle Bin of the volume a given Tab is already exploring, while most of the time it would just apply to current path(s) in Address Bar(s) the color I had chosen for Filter. But all in all e.g.

T:\$RECYCLE.BIN

shows up as being empty folder (just like every other local Recycle Bin). Plus I need then to manually turn off the Filter



C] Add an icon to a Favorite Toolbar that opens Recycle Bin folder and only after clicking that icon execute method A or B?


If yes, then I already have twin

Code: Select all

[Tools2054_Recycle Bin ● Left]
Category=
Prg=C:\QQ\FreeCommander\FreeCommander.exe
Dir=
Par=-T -C -L=::{645FF040-5081-101B-9F08-00AA002F954E}
DosFormat=0
UseDoubleQuote=1
DelimiterChar=
IconFile=C:\QQ\! ICONS\folder system Recycle Bin.. Full.ico
IconNr=0
HotKeyNr=-1
GHot=0
WinState=0
ShowInMenu=1
ShowInToolbar=1
RunAs=0
RunSeparate=0
WidthPixel=0

[Tools2054_Recycle Bin ● Right]
Category=
Prg=C:\QQ\FreeCommander\FreeCommander.exe
Dir=
Par=-T -C -R=::{645FF040-5081-101B-9F08-00AA002F954E}
DosFormat=0
UseDoubleQuote=1
DelimiterChar=
IconFile=C:\QQ\! ICONS\folder system Recycle Bin.. Full.ico
IconNr=0
HotKeyNr=-1
GHot=0
WinState=0
ShowInMenu=1
ShowInToolbar=1
RunAs=0
RunSeparate=0
WidthPixel=0
in my

FreeCommander.fav.ini

sub-config file - is it then correct / compatible?



D] Add in

Tools > Settings > View > Column profiles / Automatic views / Auto selectable views >

a proper entry - which will make the Filter be applied automatically whenever / however I navigate to Recycle Bin?


If yes, then this is a method that seems being convenient enough to be enacted by me, because it does not require additional manual steps. But how would it need to look like? I already have

Code: Select all

[asv_300B4EAA-5116-43F6-AEC2-C580E032636C]
Id=300B4EAA-5116-43F6-AEC2-C580E032636C
Name=Recycle Bin (an Auto Selectable View)
ViewStyle=2
DetailedViewName=
DetailedViewAutoSelect=1
SortColumnContentType=1
SortColumnContent=2
SortAsc=0
SizeOfFolders=0
Condition=<pidl>::{645FF040-5081-101B-9F08-00AA002F954E}
ContentConditionType=0
ContentCondition=
QuickFilter=
QuickFilterBehave=0
FilterId=
in my

FreeCommander.views.ini

sub-config file

Marek
Author
Author
Posts: 4366
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Recycle Bin could use a pre-cashing feature

#10 Post by Marek » 23.03.2026, 19:09

1. Define reusable filter; In my list it is the filter number 3
screen_2026-03-23 18-14-10.png
screen_2026-03-23 18-14-10.png (22.63 KiB) Viewed 3066 times
2. Add reusable filter 3 to the e.g. splitter toolbar
screen_2026-03-23 18-09-15.png
3. Open the recycle bin folder in the left/right panel, e.g. D:\$RECYCLE.BIN\S-1-5-21-3777255868-3057126717-2516846410-1001 and click the button for reusable filter on the splitter toolbar
screen_2026-03-23 18-05-12.png

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Recycle Bin could use a pre-cashing feature

#11 Post by Forez » 24.03.2026, 20:33

I do it think we are on the same page here


First you say that
Marek wrote: 20.03.2026, 17:47 I have defined a detailed view that allows me to open a $RECYCLE.BIN folder containing more than 20,000 deleted items in under 2 seconds.
but then that
Marek wrote: 20.03.2026, 17:47 [...]
Now if you open e.g. D:\$RECYCLE.BIN\S-1-5-21-3777255868-3057126717-2516846410-1001 and set the filter "Recycle.bin $R items" the right content is showed.
and repeat that also in the latter post by saying
Marek wrote: 23.03.2026, 19:09 [...]
3. Open the recycle bin folder in the left/right panel, e.g. D:\$RECYCLE.BIN\S-1-5-21-3777255868-3057126717-2516846410-1001 and click the button for reusable filter on the splitter toolbar
This implies I have to first open Recycle Bin, which now takes me 6 second because it hold 55000 items at the moment, wait for it to actually open all the way in and thus give me control - and then I need to manually activate the Filter, which takes 4-5 seconds. Where is the gain in this?

What I need is a way to somehow open or at least re-open Recycle Bin with its content being preloaded, so that I will never (or just once during a session) have to wait e.g. 6 seconds



As for that Filter itself, like I wrote in this post viewtopic.php?p=44551#p44551, I do have set it to Include

Code: Select all

$R*
And all it does when activated is narrowing down those 55000 items to show 1 extensions-less file named
$REVISION

Marek
Author
Author
Posts: 4366
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Recycle Bin could use a pre-cashing feature

#12 Post by Marek » 25.03.2026, 21:36

I'm sorry if that didn't work for you. If your current method for opening of the recycle bin is better and faster, then continue using it.

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Recycle Bin could use a pre-cashing feature

#13 Post by Forez » 26.03.2026, 08:25

All in all, right now there is no persistent cache function in FreeCommander, not for Recycle Bin nor for ordinary folders, right?

But will it be added in a foreseeable future?

Marek
Author
Author
Posts: 4366
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Recycle Bin could use a pre-cashing feature

#14 Post by Marek » 26.03.2026, 09:24

No such plans.

User avatar
Forez
Posts: 1524
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Recycle Bin could use a pre-cashing feature

#15 Post by Forez » 26.03.2026, 09:43

So it seems that in this matter I just must continue supplementing usage of FreeCommander with Everything

Post Reply

Who is online

Users browsing this forum: No registered users and 76 guests