Use Message-ID for cache keys
This commit is contained in:
parent
41a0f4f8f2
commit
8ba2a931b9
3 changed files with 21 additions and 6 deletions
|
@ -28,7 +28,7 @@ message meets a specified criterion.
|
|||
### Cache Storage
|
||||
|
||||
Classification results are stored under the `aiCache` key in extension storage.
|
||||
Each entry maps a SHA‑256 hash of `"<message id>|<criterion>"` to an object
|
||||
Each entry maps a SHA‑256 hash of `"<message Message-ID>|<criterion>"` to an object
|
||||
containing `matched` and `reason` fields. Older installations with a separate
|
||||
`aiReasonCache` will be migrated automatically on startup.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue