You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The backend method read/get methods are wrapped in a cachetools ttl cache. Updating an existing mosaic will write this new value to the backend, but it won't be available to read for up to 5 minutes (default).
This is a complex behavior to implement correctly, but the existing implementation is confusing to users, especially because there is no documentation that this is the behavior. I would expect and update and the read to return what I just updated, not the old version until it expires.
The text was updated successfully, but these errors were encountered:
Yes, but you can also clear just one entry with pop, which is probably what should be done for read -- though I'm not sure how this can be cleared for the cache used by get_assets. It might require a more complex structure like per-path (mosaicid) and the then per-quadkey, so you can clear all the entries for a single mosaic in one go. Though, the cache is pretty small, so just locking and iterating through it on the (relatively rare) update operation probably isn't too bad.
This doc https://cachetools.readthedocs.io/en/stable/ has an example for manual cache clearing if you search for To perform operations on the cache object, for example to clear the cache during runtime
The backend method read/get methods are wrapped in a cachetools ttl cache. Updating an existing mosaic will write this new value to the backend, but it won't be available to read for up to 5 minutes (default).
This is a complex behavior to implement correctly, but the existing implementation is confusing to users, especially because there is no documentation that this is the behavior. I would expect and update and the read to return what I just updated, not the old version until it expires.
The text was updated successfully, but these errors were encountered: