Commit 22f84a8
committed
doc: add note that we can't incrementally clean old records from db
The clean operation can take a while. I considered setting a time
limit so it would clean as many records as it can within a time limit
(e.g. 2 seconds) and then return from clean.
However the callers expect that all old record are removed so that
looking for a matching session key, csrf key etc. will match ONLY
unexpired records. They don't check the __timestamp returned.
So clean MUST destroy all expired records before returning.1 parent 6f5bd00 commit 22f84a8
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
| |||
0 commit comments