Skip to content

Persistent cached data #117

Answered by jeandet
Beforerr asked this question in Q&A
Discussion options

You must be logged in to vote

@Beforerr, the cached data is actually persistent in (stored on disk) but for each data request Speasy checks if there is any update on the remote server providing these data. The main issue here is that this mechanism can be tricky to get right. The current implementation can discard cache entries too eagerly because it is safer to refresh data that keeping an outdated product by default.
In my TODO list, I planed to add a no_refresh keyword to the get_data function to take data from cache without checking if remote servers have a newer version of a given product.

The pitfall here is that cache entries are fixed size (12h) data fragments that are stored when last server request was done.…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Beforerr
Comment options

You must be logged in to vote
0 replies
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