Skip to content

Commit

Permalink
comment on cache content
Browse files Browse the repository at this point in the history
Co-authored-by: Thibaut Barrère <[email protected]>
  • Loading branch information
vdegove and thbar authored Jan 28, 2025
1 parent 1f00651 commit 7c131e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/transport/lib/transport/preemptive_api_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ defmodule Transport.PreemptiveAPICache do

Transport.Cache.put(
"api-datasets-index",
# NOTE: the structure saved in Cachex is currently an Elixir structure,
# not the final JSON. We may have to persist JSON directly instead to
# reduce memory use in the future.
TransportWeb.API.DatasetController.prepare_datasets_index_data(),
@cache_ttl
)
Expand Down

0 comments on commit 7c131e1

Please sign in to comment.