# fix\(cache\): preserve live usage during cache restore \(\#218\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/77aecea6eea131be3b9f97f42b4592d734ff5828)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 77aecea6eea131be3b9f97f42b4592d734ff5828

Requested commit: 77aecea6eea131be3b9f97f42b4592d734ff5828

Commit: 77aecea6eea131be3b9f97f42b4592d734ff5828

Tree: b627d3b09507f5a0ac7d4012f1b9176e6082ec5d

Author: Simone

Committer: GitHub

## Message

```
fix(cache): preserve live usage during cache restore (#218)

* test(cache): reproduce delayed restore losing retained live usage

* fix(cache): preserve live measurements during delayed restore

* test(cache): cover delayed restore timestamp boundaries

Exercise accepted receipt-time quotas, measured zero, account-key preservation,
missing cached providers, raw failed snapshots, and the original retention
deadline. Keep the author's production fix unchanged.

Supplemental Node execution of these exact QML test function bodies against
the author's implementation passes all five data cases. Four fail against
the original module, while the raw-failure control passes in both versions.
Native Qt/check/smoke results must be verified on this updated branch.
```

## Parents

- [757f58e6bba0327d5c6d5a2698efbdea21ac9c9c](https://git.cafe/lucenx/codexbar-plasma/commit/757f58e6bba0327d5c6d5a2698efbdea21ac9c9c?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/77aecea6eea131be3b9f97f42b4592d734ff5828?format=markdown)
