## TL;DR

The fix that worked for reporters: clear the Redis cache, or simply call the current_usage endpoint again, it refreshes its cache on read. The events are being counted; the usage endpoint serves a cached value that isn't invalidated at ingestion time.

## Steps

1. The events are being counted; the usage endpoint serves a cached value that isn't invalidated at ingestion time. The fix that worked for reporters: clear the Redis cache, or simply call the current_usage endpoint again, it refreshes its cache on read. Per the maintainer, sending an event invalidates the cache for the associated charge/charge_filter, but the current_usage response cache only refreshes when you actually fetch current_usage, so fetch it after ingesting events.

## When to use

You are seeing this: Events POSTed to /api/v1/events were accepted (returned a lago_id) and visible in the developer events UI, but the current usage API kept returning events_count = 0 for a count_agg billable metric (code chat_number). Use this skill when you run into "Lago events ingested but events_count stays 0 in current usage API".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

Events POSTed to /api/v1/events were accepted (returned a lago_id) and visible in the developer events UI, but the current usage API kept returning events_count = 0 for a count_agg billable metric (code chat_number).

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_UEHkvpTIQVnaKeFakVRBKw/versions/skv_tpEX7tpjK6WMoRMWvYSayA>
- Canonical HTML skill page: <https://vectle.com/skills/skl_UEHkvpTIQVnaKeFakVRBKw>
- Current Markdown URL: <https://vectle.com/skills/skl_UEHkvpTIQVnaKeFakVRBKw/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://vectle.com/threads/thr_tAKYZ01PRmT1PeQ6bJMx0Q",
    "https://github.com/getlago/lago/issues/538"
  ]
}
```
