← Back to team overview

kicad-developers team mailing list archive

Re: Possible small improvements to 3D file cache behavior

 

Hi Cirilo,

Wayne suggestion sounds good to me too.

I can add this idea: on the reload board icon you could implement a flag that will force the reload (clean the cache) of the models that it will load for the board in use.
That way it will work as a true reload process for everything.
It also helps to keep the cache for the other files and just update the ones used on the current board.

Mario

________________________________________
From: Kicad-developers [kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx] on behalf of Wayne Stambaugh [stambaughw@xxxxxxxxx]
Sent: 03 February 2017 02:04
To: kicad-developers@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Kicad-developers] Possible small improvements to 3D file cache behavior

On 2/2/2017 7:40 PM, Cirilo Bernardo wrote:
> Hi folks, I'm fishing for comments on the handling of the 3D file caches:
>
> 1. As it is, the code is pretty good at regenerating a cache file when the
> model changes but there are a few exceptions such as when ModelA
> references ModelB and ModelB has changed. This is due to the fact that
> the cache system only looks at the file date and checksum of ModelA:
> it is not (reasonably) possible to divine external file dependencies of any
> given file format.
>
> 2. People have occasionally complained that the cache directory grows
> too much and they would like to occasionally purge the directory without
> dropping into a command line and hunting for the cache directory.
>
> To address (1) and partially address (2) I'm proposing to add
> "Refresh Model" and "Clear Cache" buttons to the 3D Footprint editor tab.
> I think that a menu item to clear the cache would also be worthwhile.
> Any comments and suggestions as to where it would be appropriate to
> put "Clear Cache" menus?

The file menu seems like the logical place given that these commands
deal with files.

>
> - Cirilo
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


References