Skip to content

Force cache refresh before expiration? #28

Answered by dimo414
kumy asked this question in Q&A
Discussion options

You must be logged in to vote

Can you share more details about what you're trying to do?

You can use an environment variable to invalidate the cache (PWD is particularly useful so commands run in different directories are cached separately) or bc::warm::FUNCTION_NAME to asynchronously warm the cache. You can also customize the BC_CACHE_DIR to invalidate old cached data, though that's a bit of a big hammer. There isn't a way to force a single command to be re-cached at present (bkt provides a --force flag that does this) but I can imagine adding a bc::force::FUNCTION_NAME function if that would be useful.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@dimo414
Comment options

@dimo414
Comment options

@kumy
Comment options

@kumy
Comment options

@kumy
Comment options

Answer selected by dimo414
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants