Skip to content

How does targets decide when to invalidate a targeting involving an online API call #440

Closed Answered by wlandau
liutiming asked this question in Help
Discussion options

You must be logged in to vote

The hash is determined by the local data that is downloaded. The target is invalidated when the local data changes, etc., but targets will not know about the external service whose API you called. Up to you whether to set mode = "never" in tar_cue(). If all you need is the data to exist and you do not care to synchronize your local copy with the latest online copy, that seems fine. Otherwise, you could use a custom cue, maybe a tar_age() target or tar_cue_age() cue from development tarchetypes if you want to check at regular time intervals.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@liutiming
Comment options

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