Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
feat: add a simple image cache to reduce image fetches (#359)
Browse files Browse the repository at this point in the history
* feat: add a simple image cache to reduce image fetches

we now refetch them only every 15 minutes (tiles_ttl) or potentially sooner if
we know of a bucket level ttl

Closes #357
  • Loading branch information
pjenvey authored Feb 23, 2022
1 parent ac91d92 commit 6c4928e
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 67 deletions.
2 changes: 1 addition & 1 deletion src/adm/tiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Tile {
pub fn from_adm_tile(tile: AdmTile) -> Self {
// Generate a base response tile from the ADM provided tile structure.
// NOTE: the `image_size` is still required to be determined, and is
// provided by `StoreImage.store()`
// provided by `ImageStore.store()`
Self {
id: tile.id,
name: tile.name,
Expand Down
Loading

0 comments on commit 6c4928e

Please sign in to comment.