Skip to content

Vitamins.clear() may be failing to clear download cache #72

@JansenSmith

Description

@JansenSmith

Updated an STL, then cleared Vitamins cache. Old STL still loading. Created a renamed version, which works. Prety sure it's aggressive caching. I can just add something to Vitamins.clear(), if that's the answer. I think Vitamins.clear() should work here, though.

Despite having the same SHA hash, these two STLs now load different geometries:
Image

The updated STL has the bottom-left and bottom-right fresco panels swapped.

println "Clearing the Vitamins cache to make sure current geometry is being used (only run this operation when the STL has changed)"
Vitamins.clear()

println "Trying to download "+piece_url

// Load the .CSG from the disk and cache it in memory
CSG piece  = ScriptingEngine.gitScriptRun(
	"https://github.com/JansenSmith/downloadSTL.git", // git location of the library
	"downloadSTL.groovy" , // file to load
	// Parameters passed to the function
	[piece_url]
	)

but here's what i get:

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions