* Option to not create an image cache

Requests that have been moved to the Wish List, or deemed to need no further action
Post Reply
User avatar
Mark1834
Megastar
Posts: 2147
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Option to not create an image cache

Post by Mark1834 » 07 Mar 2023 10:51

Another simple to define item for consideration -

Issues -
  1. The media cache file is large and is refreshed frequently. This can cause delays in syncing with cloud storage if the user has a relatively slow internet connection (uploads are generally much slower than downloads, particularly for non-FTTP connections).
  2. When working with media files, FH appears to access the cached thumbnail rather than the live file. If you are revising the image file while FH is open (e.g. by downloading an alternative version), the Media tab in the Properties Box does not refresh until you select a different record then switch back
Proposal - An option in Tools > Preferences to not create an image cache file, and always access the live image. The majority of modern PCs now have fast SSD storage, so the cache file creates more problems than it solves.
Mark Draper

User avatar
tatewise
Megastar
Posts: 27079
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Option to not create an image cache

Post by tatewise » 07 Mar 2023 12:50

The Tools > Preferences > General tab, Advanced... button, offers two cache options that may do what you requested.
( You are not supposed to post a request for a feature that FH already offers :D )

A related problem is that the ThumbCache.dat file only gains thumbnails and never purged of unused ones, which means it can grow incredibly large and cause various errors in FH and with cloud syncing. That known problem has existed forever!
There should be a mechanism that either purges redundant thumbnails or allows the ThumbCache.dat file to be deleted safely, whereas currently users are advised to delve into the Project folder Cache sub-folder to delete that file.
See FHUG KB Family Historian Installation Problems Error: Out of Memory and the Forum Topics mentioned at the bottom.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
arthurk
Superstar
Posts: 339
Joined: 31 Jan 2015 20:24
Family Historian: V7

Re: Option to not create an image cache

Post by arthurk » 07 Mar 2023 13:57

Mike - please could you clarify what you mean by "unused" and "redundant" thumbnails? Do they relate to images that have been removed from the project, or does the thumbnail cache keep refreshing itself but without deleting duplicates?

As my cache is steadily growing, though not yet alarmingly big, I'm inclined to change the setting to Load When Needed, but that raises a couple more questions:
- will setting that option delete the existing cache, or would that still need to be done manually?
- my images are stored outside the project: does that affect any of the above?

User avatar
tatewise
Megastar
Posts: 27079
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Option to not create an image cache

Post by tatewise » 07 Mar 2023 14:19

Unfortunately, the cache behaviour is not well documented so what happens is based on user observations, smoke & mirrors.
It is not even clear whether the Report/Book Image Caching and Thumbnail Images options relate to the same cache!
The problems are more likely in large Projects with many images and multiple Diagrams or Reports open.

It seems the ThumbCache.dat file only grows and never shrinks even when Media records/images are deleted or Link to Face frames are redefined and need a new 'cropped' image.

Nothing in FH ever deletes the ThumbCache.dat file, which is why the FHUG KB advises manual deletion.

It does not matter where the image files are stored as it is their thumbnail images cached by FH that matter.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
David2416
Superstar
Posts: 378
Joined: 12 Nov 2017 16:37
Family Historian: V7
Location: Suffolk UK

Re: Option to not create an image cache

Post by David2416 » 07 Mar 2023 15:00

I set the The Tools > Preferences > General tab, Advanced option to load when needed some time ago and then deleted the ThumbCache.dat
That file has not been recreated, a search of my hard drive shows just the remnants shown in the screenshot below.

Perhaps that addresses Mark's requirement? I haven't noticed any downside.

User avatar
Mark1834
Megastar
Posts: 2147
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Option to not create an image cache

Post by Mark1834 » 07 Mar 2023 15:17

Thanks both - I’d forgotten the cache options in Preferences, so that does seem to do what I was seeking. I’ll follow David’s route and check that it does not reappear.
Mark Draper

User avatar
tatewise
Megastar
Posts: 27079
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Option to not create an image cache

Post by tatewise » 07 Mar 2023 15:37

Mark, can this thread be moved to the FH General Usage forum for the time being?

The 'remnant' ThumbCache.data files listed by David are probably simply explained...
The first one is embedded in the FH installation files for the Family Historian Sample Project, so not a 'remnant' at all.
The second is embedded in the actual Family Historian Sample Project itself, so also not a 'remnant'.
The other two are probably embedded in other Projects that David has created and could be deleted from those Projects.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Mark1834
Megastar
Posts: 2147
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Option to not create an image cache

Post by Mark1834 » 07 Mar 2023 15:46

No problem. I've just changed my settings and deleted all my ThumbCache.data files apart from the one under the ProgramFiles(x86) folder relating to the master copy of the Sample Project, so I'll monitor performance over the next few days and weeks.
Mark Draper

avatar
arthurk
Superstar
Posts: 339
Joined: 31 Jan 2015 20:24
Family Historian: V7

Re: Option to not create an image cache

Post by arthurk » 07 Mar 2023 17:24

Thanks for all the comments and advice - I've likewise deleted the ThumbsCache.dat and changed the setting to Load When Needed. In the event of any problems I expect I'll be back....

User avatar
David2416
Superstar
Posts: 378
Joined: 12 Nov 2017 16:37
Family Historian: V7
Location: Suffolk UK

Re: Option to not create an image cache

Post by David2416 » 07 Mar 2023 18:24

tatewise wrote:
07 Mar 2023 15:37
The 'remnant' ThumbCache.data files listed by David are probably simply explained...
The first one is embedded in the FH installation files for the Family Historian Sample Project, so not a 'remnant' at all.
The second is embedded in the actual Family Historian Sample Project itself, so also not a 'remnant'.
The other two are probably embedded in other Projects that David has created and could be deleted from those Projects.
Spot on Mike; I have deleted them apart for the one embedded in the FH installation files for the Family Historian Sample Project.
The 'Load When Needed' seems to be a global setting rather than per project.

avatar
NickiP
Famous
Posts: 192
Joined: 26 Feb 2013 12:36
Family Historian: V7
Location: UK

Re: Option to not create an image cache

Post by NickiP » 16 Mar 2023 20:17

Thanks for this. I have the very issue ADSL broadband and a 1.35gb cache file which I have to remember to delete each time I use FH.

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Option to not create an image cache

Post by ColeValleyGirl » 03 Jun 2023 12:33

Closing as not required.

Post Reply