SVNDbLib : Cache seems not working - Page 1
Forum section: electronics / general

author: dgotfroi
author_rank: Newbie
timestamp: June 18, 2019, 01:14:36 pm
content: Hello,We worked a long time with integrated Library. But today we are 3 hardware devs and we need to migrate to a svnDBLib.I've created a MySQL database and split all footprints/symbols of my Integrated libraries and commit them to SVN.Everything work fine. We (the 3 hw devs) can now work in libraries without problem.But when one of us commit a symbol/footprint change in our SVN repository, the change doesn't appear in the library of the 2 others devs.In the SVN repo, we can see the change, but on devs computer, in the altium cache folder, the change is never updated.I tried all these actions to automatically update the cache :Placing a component from an installed SVNDbLib file (from the Libraries panel).Performing a design transfer (i.e. updating the PCB).Using the Update From Libraries command in the Schematic Editor.Using the Update From PCB Libraries command in the PCB Editor.I also tried the following to manually force update :Using one of the Refresh commands available from a right-click menu in the Libraries panel.Uninstalling and re-installing the SVNDbLib file to the Available Libraries list.Nothing works, except the last one : "Uninstalling and re-installing the SVNDbLib file to the Available Libraries list."But it's not really convenient to always uninstall and reinstall library.In my Preferences/Data Management/SVN Libraries. My cache folder max refresh time is set to 1 minutes.Do you have any idea ?Thanks

author: Giaime
author_rank: Regular Contributor
timestamp: June 20, 2019, 06:33:27 am
content: Yep, it doesn't work and we don't know why.We update the cache outside of Altium with Tortoise SVN. In fact, all operations we do (adding a new footprint, commit it, etc...) are done outside of Altium.

author: dgotfroi
author_rank: Newbie
timestamp: June 20, 2019, 10:04:12 am
content: Hello,Many thanks for your answer. I can stop investigate.We will update the cache manually (and move it from %appdata% ...)Thanks

author: tszaboo
author_rank: Super Contributor
timestamp: June 20, 2019, 10:14:42 am
content: Quote from: dgotfroi on June 20, 2019, 10:04:12 amHave you tried Altium support yet?One of the projects we have is to move from DBLIB to SVNDBLIB, but we havent started working on it.

author: dgotfroi
author_rank: Newbie
timestamp: June 20, 2019, 01:37:02 pm
content: Quote from: NANDBlog on June 20, 2019, 10:14:42 amYes, I've 2 tickets open since one week, with absolutely no answer from Altium Support... And we pay for it...

author: ajb
author_rank: Super Contributor
timestamp: June 20, 2019, 07:42:33 pm
content: Does closing and re-opening Altium get the changes to show up? I've seen that happen with my DBLib since AD19, but restarting Altium gets the change to appear in the component browser.There's a bugcrunch here:https://bugcrunch.live.altium.com/#Bug/124Side note: wow, that's a 3-digit issue number, from 2011. Current numbers are >11000. Yay Altium!

author: dgotfroi
author_rank: Newbie
timestamp: June 21, 2019, 07:16:16 am
content: Quote from: ajb on June 20, 2019, 07:42:33 pmNope, the only solution that I found for updating the cache is to uninstall and install again the SVNDbLib... Not really convenient

author: Philfreeze
author_rank: Regular Contributor
timestamp: July 02, 2019, 11:51:16 am
content: You can update the cache externally!We always just killed the cache file and then Altium redid the cache itself which took some serious time!

author: Pseudobyte
author_rank: Frequent Contributor
timestamp: July 08, 2019, 06:19:01 pm
content: Yeah we use a batch script to force it to rebuild.Edit: looks like they changed where that cache hidescd "%appdata%"cd ..rmdir "Local/Altium/SVNDBlib Cache" /s /qcmd /k

author: Wor3d
author_rank: Contributor
timestamp: November 25, 2020, 02:48:49 pm
content: Hi there,I am currently setting up a SVN library to be used in Altium, and I have already made a custom solution to update Altium's SVNDbLib working folder and SVNDbLib cache folders (I wrote a program to overwrite the .xlsx file with database even if the Altium has requested to lock it), but probably like all of you I cannot get Altium to refresh the library.... My test looks like this1. Altium has latest DB2. Change DB3. update SVN Working Folder and Cache folder manually with latest DB4. Hit F5 in Components and reconnect the library (change sth and back for the reconnect to button to appear)5. Nothing is refreshed.....Any advice how you/your company does this? If someone is interested, I can send you my little script which does the folder refreshing...

author: Pseudobyte
author_rank: Frequent Contributor
timestamp: November 25, 2020, 06:04:23 pm
content: have you tried my script?

author: Wor3d
author_rank: Contributor
timestamp: November 26, 2020, 01:41:49 pm
content: Removing the cache? Yes I have tried that, for now manually, only the database file, and also the whole Cache folder. Altium was saying it is rebuilding cache when I hit F5, it took a few seconds, it was rebuild, but in the Altium itself the components in 'components' panel remained the same and did not change...