Commit f9b4bad
committed
docs: flag cache-window plugin pinning and on-chain submission race
Two subtle behaviors that aren't bugs but bite operators and plugin authors:
- Mutation hooks (onBeforeApiCall, onAfterApiCall, onBeforeSign) only fire on
the first request in each cache TTL window. Cached hits skip them. Heartbeat
/ counter / alerting work should go in onResponseSent or onHttpRequest, which
fire on every request.
- Cached responses are byte-identical (same data, signature, timestamp), so on
every on-chain submission past the first the verifier reverts with "Already
fulfilled" and the submitter eats gas. For endpoints whose consumers race to
fulfill on-chain, set a short maxAge or skip caching entirely.
No code changes — just lifting these from the audit notes into the public docs
where plugin authors and operators will see them.1 parent 4b7e754 commit f9b4bad
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
156 | 167 | | |
157 | 168 | | |
158 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
| |||
0 commit comments