Skip to main content
Ramón G Castañeda
Inspiring
July 7, 2007
Question

Can someone write a script that goes through all folders in Bridge and Purges the Cache for each one

  • July 7, 2007
  • 15 replies
  • 2420 views
Can someone write a script that goes through all folders in Bridge and Purges the Cache for each one of them?

The Purge command in Preferences does not work; period. It appears to clear the thumbnails, but NOT the fields that appear under each thumbnail in the Content panel.

Only the Purge the Cache for 'foldername' in the Tools menu does the job.

As someone who can't script my way out of a paper bag, I'm wondering whether it's possible to write a script to go executing that command folder by folder, including all subfolders..

Any and all input is welcome.

Thanks in advance.
This topic has been closed for replies.

15 replies

Ramón G Castañeda
Inspiring
July 20, 2007
Just for the record, the script suggested by David does indeed use the Purge Cache button in the Bridge preferences, not the Tools menu > Cache > Purge Cache for 'foldername' command.

We corrected our initial miscommunication by email. (Thank you, David.)

David explains that the Tools menu > Cache > Purge Cache for 'foldername' command is designed to clear distributed caches in the folder, while the Purge Cache button in the Bridge preferences is designed to clear only the central cache.

The unfortunate apparent bug (at least on my system) remains, in that the cache that is rebuilt in each folder after using the Purge Cache button in the Bridge preferences, rebuilds improperly. It always leaves out the Date Created line under the thumbnails in Bridge, and occasionally (rarely) leaves out the Color Profile line.
lfcorullon13651490
Legend
July 15, 2023

I'm working in a script to convert some files and, after the convertion, the folder has no thumbs to display (but Windows Explorer shows everything ok). If I manually go to the Tools > Cache > Purge cache to this Folder, it works. But I need this working in my script.

 

Any help will be appreciated.

Thanks in advance.

gregreser
Legend
July 15, 2023

Looking at Bridge 2023 JavaScript Reference, p. 65, this should purge the cache for the current folder:

app.document.chooseMenuItem("PurgeCache");

However, I can't get it to work.

Ramón G Castañeda
Inspiring
July 12, 2007
David,

Sent you an email with a zipped archive of a folder of inconsequential JPEGs that shows the problem. I stripped the ".zip" extension.

Let me know if that helps.
Ramón G Castañeda
Inspiring
July 12, 2007
Thank you both for responding.


* David,
>zip-up and send me a URL to download one small folder of files, including the distrubuted cache files

I'll try finding a "small" folder file with the cache problem. It won't be easy. I would exceed my FTP allowance with my ISP, but I can either use yousendit.com to email them to you, or you can provide me with a temporary password for the Adobe FTP space.

- - -

* Goichi,

Good suggestion, I'll try that. Hope the search doesn't bring Bridge to its knees. :D
Participant
July 11, 2007
Hi Ramòn,

You can select Edit > Show Hidden Files to show the hidden cache files. The cache files are named as ".BridgeCache" and ".BridgeCacheT". Please use our search tool by Edit > Find... and look for all the cache files on your hard disk. Please check "Include Non-indexed Files" to find all the folders. When they are found, you can check the location by File /Context > Reveal in Bridge to make sure that you want to delete them.

Goichi Kitazume
goichi@adobe.com
dfranzen_camera_raw
Adobe Employee
Adobe Employee
July 11, 2007
Ramon,

So I can investigate this further, can you zip-up and send me a URL to download one small folder of files, including the distrubuted cache files?

Thanks,
David Franzen
dfranzen@adobe.com
Ramón G Castañeda
Inspiring
July 10, 2007
David,
> Are you using distributed cache or centralized cache?

Distributed.

>Have you seen the problem occur with files that were not previously cached by pre-release builds?

After running the script, I am seeing the problem in all my folders, without exception. Even folders for which I had purged the cache previously and were already showing all four lines (creation date, modification date, pixel dimensions, color profile). Now all of them, in every single folder on my internal and all external FW drives that were mounted at the time the script ran. The creation date and color profile fields were nuked by the script. :/

I'm in the process of rebuilding the cache folder by folder. It will take me weeks to get things back to normal.

On second thought, I might as well wait for the next dot release. I can't imagine the Adobe Bridge team not fixing this, and a new version may fix the problem globally. (Hope, hope.)
dfranzen_camera_raw
Adobe Employee
Adobe Employee
July 10, 2007
Are you using distributed cache or centralized cache?

If you are using centralized cache you can manually delete the centralized cache.

1. Go to Bridge Preferences, Cache
2. Note the Cache Location.
3. Quit Bridge
4. Delete the Cache folder.
5. Relaunch Bridge

Ramon, you stated in your post on 1:51pm Jul 9, that you were only seeing a problem with files cached by pre-release Bridge builds. Have you seen the problem occur with files that were not previously cached by pre-release builds?

-David
July 10, 2007
You have confirmed something that I suspected might be happening because of the numerous posts on the subject of caches.

It seems that we just need to do any necessary purging folder by folder for the moment which is the way that I have been working.
Ramón G Castañeda
Inspiring
July 10, 2007
The Build and Export Cache in the Tools menu > Cache command does NOT restore the creation date under the thumbnails. Nothing short of using Tools > Cache > Purge cache for 'this folder' will restore the lost creation date.

Ramón G Castañeda
Inspiring
July 10, 2007
Well, this is one messy bug in Bridge. :(

I did manage to save the script and execute it from the Bridge Content panel, but it looks like it's calling on the Purge command in Bridge Preferences, not the tools menu.

The result is that I now have to go into each darned folder manually and run the command from the tools menu again. The creation data is now missing from under all the thumbnails in all folders.

Frankly, I'm not looking forward to re-doing all that tedious manual work. :/

Prior to posting here in this thread for the first time, I had already fixed several dozen folder by running the Cache>Purge command in each of those folders. Now running the script as per your instructions has undone all hard work.

I'm uploading the saved script here ; if you would be so kind as to examine it, I would be much obliged.

For the time being, I'll be deleting all traces of it from my hard drive. What good is it if it still calls on the lousy Purge command in Preferences instead of the one in the Tools menu?

Bummer.

The bottom line is that Cache management in Bridge is still in need of a lot of work. :/