Data refresh and cache
CloudPouch downloads AWS cost data once, caches it as JSON files on your disk, and reuses it — so reopening a report is instant and does not re-query the AWS Cost Explorer API. The trade-off: cached data can go stale, and CloudPouch tells you when it does.
How the cache works
Section titled “How the cache works”The cache is keyed by AWS profile, time period, and screen. Analyzing the same account for the same month reads from disk; switching to a different profile or timeframe triggers a fresh download for that combination. Nothing is shared with any server — cached data stays on your machine, in the locations listed under Local files.
Caching matters for more than speed. Cost Explorer API calls are billed per request by AWS, so re-reading a local file instead of re-querying the API keeps that line item small no matter how often you flip between reports.
Cache-first loading on the Billing screen
Section titled “Cache-first loading on the Billing screen”The Billing screen — including the six-month cost history behind its spend trend — loads from the cache first and refreshes in the background, rather than blocking on a fresh Cost Explorer call every time you arrive. Three details follow from that:
- Duplicate in-flight requests for the same cost data are collapsed into one Cost Explorer call, so CloudPouch does not pay twice for the same answer.
- A reply that arrives late for an older request cannot overwrite a newer reply already on screen.
- The six-month prefetch pauses while a Savings Scan is running, so it does not compete with the scan for the same AWS API quota.
CloudPouch estimates its own six-month prefetch at roughly 0.02 USD in Cost Explorer charges, once per profile per six-month window. That is an estimate of CloudPouch’s request pattern, not a statement of AWS Cost Explorer API pricing — check the AWS Cost Management pricing page for current rates.
The “Cached data outdated!” prompt
Section titled “The “Cached data outdated!” prompt”When the local copy of cost data is old enough to be worth replacing, CloudPouch shows a prompt titled Cached data outdated! and asks whether to download fresh data. How it decides:
- Freshness is measured in UTC from the moment CloudPouch downloaded the data, not from the age of the AWS data itself.
- Current-month cost data is offered for refresh only after 24 hours have actually elapsed since the download.
- The age CloudPouch states is the true elapsed age, or no age at all.
- Your answer — Yes or No — holds for the rest of the session, including after you leave the Billing screen and come back.
- Confirming closes the prompt and causes at most one billed Cost Explorer refresh.
You can also refresh manually from the UI at any time. CloudPouch shows a loading screen while the download runs.
When to refresh
Section titled “When to refresh”Refresh when:
- You need the latest cost data. Keep in mind that AWS billing data itself lags: Cost Explorer typically reflects usage with a delay of up to about 24 hours, so a refresh gives you the freshest data AWS has, not real-time spend.
- You changed something in the account (deleted volumes, resized instances) and want the resource-level insights to reflect it.
- CloudPouch reports that cached data is stale.
After a CloudPouch update
Section titled “After a CloudPouch update”Updating CloudPouch is not a reason to refresh. From CloudPouch 2.0.0, cached cost files written by CloudPouch 1.49.0 or newer are reused after the upgrade instead of being discarded, so your reports open from disk exactly as they did before — and you do not pay for a full Cost Explorer re-download you did not ask for.
The compatibility check is one-directional: a cache file written by a newer CloudPouch version than the one you are running is still treated as compatible. That only matters if you manually downgrade to an older CloudPouch version, in which case a manual refresh for the affected profile and timeframe is the safe move.
One corrective fetch for older cost windows
Section titled “One corrective fetch for older cost windows”CloudPouch computes every Cost Explorer date window in UTC, starting on the first day of its first month. Cost data that was cached under the older, day-short window is corrected with one extra fetch per profile and timeframe, and is not flagged again after that. The affected totals rise slightly. Billing and reports explains which periods this changes and why.