#Cloud cache: mark layers to not be cached?

1 messages · Page 1 of 1 (latest)

tidal osprey
#

Is there any way to tell the engine not to cache a particular layer? I think I'm getting cache pulls when I don't necessarily want to. For example, in a withExec that has a constant script string, but that command may be fetching a "latest" something, so it's desirable to run it always.

boreal needle
#

generally, the way to get this to happen is to set a CACHEBUSTER env var (or similar) - then that step will only run when that var changes

#

but there's not currently a way to control the loading of specific layers (cachebusters also affect future layers)

#

this is on the todo list though! we definitely need this

tidal osprey
#

Sure, no problem, I just interpolated time.Now().String() into a comment in my withExec script, so similar solution. No issue with that personally.

boreal needle
#

you can also use time.Now().Truncate(...).String() I think - so you can truncate to have it re-run every X hours, or every Y days